Note, trait richness would be 5 and not 4 at site 1 perfectly
demonstrating why I want to create a script rather than manually count!
--
View this message in context:
http://r.789695.n4.nabble.com/Script-to-count-unique-values-from-two-linked-matricies-tp4643979p4643980.html
Sent from
Hi guys,
It would be great if you could help me with this one...
I'm looking to create a script to convert a matrix of species abundance e.g:
http://r.789695.n4.nabble.com/file/n4643978/species_matrix.jpg
into two vectors e.g:
http://r.789695.n4.nabble.com/file/n4643978/communitylist.jpg
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
Richness should look like this:
http://r.789695.n4.nabble.com/file/n4644004/trait_richness.jpg
--
View this message in context:
http://r.789695.n4.nabble.com/Script-to-count-unique-values-from-two-linked-matricies-tp4643979p4644004.html
Sent from the R help mailing list archive at
Message-
From: [hidden email]/user/SendEmail.jtp?type=nodenode=4644005i=4
[mailto:r-help-bounces@r-
project.org] On Behalf Of benrgillespie
Sent: Monday, September 24, 2012 1:20 PM
To: [hidden email]/user/SendEmail.jtp?type=nodenode=4644005i=5
Subject: [R] List creation based on matrix
5 matches
Mail list logo