Skip to content
Prev 166399 / 398502 Next

Another newbie question

Thank you all! In future I will include examples of my code to make things
simpler for you. This is what I settled on:

Sp.presence<-Data[,14:31]   ##The subset of my data set I'm interested in
(the presence/absence data)
Sp.presence$Species<-apply(Sp.presence,1,function(x)
{c(paste(names(Sp.presence)[x==1],collapse=","))})

Yay!
-Allen
AllenL wrote: