This is great all.
It works perfectly. Thank-you.
Cheers,
Jesse
On Wed, Jan 13, 2010 at 14:27, Adrian Dusa wrote:
> Hi Jesse,
>
> If your vector is called "aa", then how about:
>
> > table(aa)
> aa
> spp1 spp10 spp2 spp3 spp4 spp5 spp6 spp7 spp8 spp9
>7 216 815
Hi Jesse,
If your vector is called "aa", then how about:
> table(aa)
aa
spp1 spp10 spp2 spp3 spp4 spp5 spp6 spp7 spp8 spp9
7 216 815 9 910 915
Hope this helps,
Adrian
On Thursday 14 January 2010, Jesse Sinclair wrote:
> Hi all,
>
> I have a vec
?table
On 14/01/2010, at 11:12 AM, Jesse Sinclair wrote:
Hi all,
I have a vector of strings and need to count the number of times a
string
appears in the vector.
eg:
[1] spp6 spp10 spp6 spp6 spp4 spp2 spp9 spp10 spp5 spp2
spp2 spp3
[13] spp4 spp3 spp6 spp10 spp6 spp4 sp
Jesse,
see ?table and try
table(stringVector)
Greg
On 1/13/10 2:12 PM, Jesse Sinclair wrote:
Hi all,
I have a vector of strings and need to count the number of times a string
appears in the vector.
eg:
[1] spp6 spp10 spp6 spp6 spp4 spp2 spp9 spp10 spp5 spp2 spp2 spp3
[13] spp4
Hi all,
I have a vector of strings and need to count the number of times a string
appears in the vector.
eg:
[1] spp6 spp10 spp6 spp6 spp4 spp2 spp9 spp10 spp5 spp2 spp2 spp3
[13] spp4 spp3 spp6 spp10 spp6 spp4 spp9 spp3 spp6 spp1 spp10 spp8
[25] spp2 spp10 spp9 spp7 spp
5 matches
Mail list logo