Hi,
I need to make a subset of my species abundance matrix with only species 
(columns) that have a total abundance(column sum) greater than 0.5 to do 
ordination in vegan package. I used following code but it is not working. Can 
you please give me a solution.
 
gl1<- subset(grassland[,5:44], colSums > 0.05, select=2)
 
gl1 is my new matrix ,and  grassland[,5:44] is my original matrix.
 
thanks,
Dilshan
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to