R applying t.test comparing multiple group and exprot result as a table : <p>I have a data look like:</p>

<pre><code>&gt; Group Time Result
&gt;     A 1   933
&gt;     A 2   992
&gt;     A 3   1007
&gt;     A 4   1428
&gt;     A 5   1068
&gt;     A 6   721
&gt;     A 1   1175
&gt;     A 2   900
&gt;     A 3   875
&gt;     A 4   1775
&gt;     A 5   986
&gt;     A 6   963
&gt;     A 1   1394
&gt;     A 2   958
&gt;     A 3   919
&gt;     A 4   1103
&gt;     A 5   940
&gt;     A 6   919
&gt;     C 2   1127
&gt;     C 3   990
&gt;     C 4   1033
&gt;     C 5   1073
&gt;     C 6   817
&gt;       ....
</code></pre>

<p>and I have total 50 groups, and each grous have 6 time point, so I want to the P value result as a table, using t.test:</p>

<pre><code>&gt;     Time：1                    
&gt;       A   B   C   D   E
&gt;     A /   N   N   N   N
&gt;     B N   /   N   N   N
&gt;     C N   N   /   N   N
&gt;     D N   N   N   /   N
&gt;     E N   N   N   N   /
&gt;                                                                   
&gt;     Time：2                    
&gt;       A   B   C   D   E
&gt;     A /   N   N   N   N
&gt;     B N   /   N   N   N
&gt;     C N   N   /   N   N
&gt;     D N   N   N   /   N
&gt;     E N   N   N   N   /
</code></pre>

<p>Is this possible?</p>

<p>Thank you for your help.</p>
