Skip to content

counting the number of times a string appears

5 messages · Jesse Sinclair, Rolf Turner, Greg Hirson +1 more

#
?table
On 14/01/2010, at 11:12 AM, Jesse Sinclair wrote:

            
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
#
Jesse,

see ?table and try

table(stringVector)

Greg
On 1/13/10 2:12 PM, Jesse Sinclair wrote:

  
    
#
Hi Jesse,

If your vector is called "aa", then how about:
aa
 spp1 spp10  spp2  spp3  spp4  spp5  spp6  spp7  spp8  spp9
    7     2    16     8    15     9     9    10     9    15

Hope this helps,
Adrian
On Thursday 14 January 2010, Jesse Sinclair wrote: