[R] Script to count unique values from two linked matricies

benrgillespie gybrg at leeds.ac.uk
Mon Sep 24 13:47:02 CEST 2012


I hope you can help with this one.

I have two matricies:

1. A species abundance matrix:

<http://r.789695.n4.nabble.com/file/n4643979/2species_matrix.jpg> 

2. A species trait score matrix:

<http://r.789695.n4.nabble.com/file/n4643979/2trait_matrix.jpg> 

The trait matrix lists trait scores for each species as listed in the
species abundance matrix.

I would like to create a script that would effectively count the unique
traits (trait richness) for each site and produce an output like this:

<http://r.789695.n4.nabble.com/file/n4643979/trait_richness.jpg> 

Firstly, is this possible in R? Secondly, if so, how would you go about
writing a script to achieve my aim?

Many thanks in advance, please let me know if you need further information.

Ben Gillespie (Research Postgraduate)



--
View this message in context: http://r.789695.n4.nabble.com/Script-to-count-unique-values-from-two-linked-matricies-tp4643979.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list