Re: [R] counting the number of times a string appears

2010-01-13 Thread Jesse Sinclair
pp9 >7 216 815 9 910 915 > > Hope this helps, > Adrian > > > On Thursday 14 January 2010, Jesse Sinclair wrote: > > Hi all, > > > > I have a vector of strings and need to count the number of times a string > > app

[R] counting the number of times a string appears

2010-01-13 Thread Jesse Sinclair
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