Re: [R-sig-eco] how to detect different species among samples

2014-02-03 Thread Martin Weiser
Hi, I am not sure that I get what you wanted, but if you are interested in names, I propose something like this: is.there - dune is.there[is.there 1] - 1 #change counts to presence/absence data number.of.samples - colSums(is.there) single.occurrences-names(dune)[number.of.samples ==1]

Re: [R-sig-eco] how to detect different species among samples

2014-02-03 Thread Gian Maria Niccolò Benucci
Hi Martin, thanks a lot. Also your commands are working... It's very nice to see how different solutions in R can be found for a single problem. I just have another question now, but... if I would know which species are in common (and which not) between two particular selected samples? Thanks for

[R-sig-eco] how to detect different species among samples

2014-02-01 Thread Gian Maria Niccolò Benucci
Hi all R-sig-ecologists, Sorry for the very simple and probably stupid question. I was wandering if exist a simple method or a function in R, to detect which different species are present among the samples of a given data community matrix. Thanks a lot in advance, -- Gian

Re: [R-sig-eco] how to detect different species among samples

2014-02-01 Thread Sarah Goslee
Hi Gian, I don't understand what you're trying to do. Can you give a simple example of your data and what your results should be? Sarah On Saturday, February 1, 2014, Gian Maria Niccolò Benucci gian.benu...@gmail.com wrote: Hi all R-sig-ecologists, Sorry for the very simple and probably

Re: [R-sig-eco] how to detect different species among samples

2014-02-01 Thread Gian Maria Niccolò Benucci
Hi Sarah, I am sorry, I'll try to be more precise. Given a dataset like... data(dune) dune[1:8, 1:10] Belper Empnig Junbuf Junart Airpra Elepal Rumace Viclat Brarut Ranfla 2 3 0 0 0 0 0 0 0 0 0 13 0 0 3 0 0 0

Re: [R-sig-eco] how to detect different species among samples

2014-02-01 Thread Olmo
Hi, maybe you must think about the biological meaning of your question, and you could try some ordination analysis, perhaps you are interested in some kind or beta diversity? Hope it helps, Olmo. El Sat, 1 Feb 2014 14:08:06 +0100 Gian Maria Niccolò Benucci gian.benu...@gmail.com escribió: Hi

Re: [R-sig-eco] how to detect different species among samples

2014-02-01 Thread Olmo
Hi and sorry, I didn't know how is your data. You could try spp.est from fossil package, I hope you find it useful. Best luck, Olmo. El Sat, 1 Feb 2014 20:07:52 +0100 Gian Maria Niccolò Benucci gian.benu...@gmail.com escribió: Dear all, Thanks for the precious tips you gave... Olmo, I