Thank you, Alex. Your reply was very useful.
However, I would just like to point out that the function is called dropspc
, not dropsp.
Regards,
Adrian Rasmussen
Alex Thomas wrote
> I just joined this list and this is my first reply, so my apologies if I
> do
> not follow appropriate formalit
I just joined this list and this is my first reply, so my apologies if I do
not follow appropriate formalities.
Hi Kate,
The suggestions already posted are really helpful to understand data
manipulation (and actually using R!), but the function dropsp() in package
labdsv is exactly what you are l
relied upon when making decisions and
> clients should use their own judgement.
>
>
> -Original Message-
> From: r-sig-ecology-boun...@r-project.org
> [mailto:r-sig-ecology-boun...@r-project.org] On Behalf Of Kate Boersma
> Sent: Tuesday, 18 December 2012 11:23 AM
> To:
gy-boun...@r-project.org] On Behalf Of Kate Boersma
Sent: Tuesday, 18 December 2012 11:23 AM
To: r-sig-ecology@r-project.org
Subject: [R-sig-eco] removing singleton taxa
Hi list. I am new to R and stuck on a very simple problem. Forgive me if
this is not the right forum for my question - feel free to r
Hi Kate,
This is pretty terse, but try
df2 <- df1[,apply( df1, 2, function(x) sum( x>0)) > 1]
This subsets the columns of df1 to those that have more than 1 presence.
You may want to have a look at ?apply to see how it works.
Good luck,
Scott
PS There are many ways to skin this cat. For e
Hi list. I am new to R and stuck on a very simple problem. Forgive me if
this is not the right forum for my question - feel free to refer me
elsewhere.
I have a community matrix of sites*species, and I want to remove species
that only occur in a single site (singleton taxa). It sounds so simpl