Skip to content
Prev 166271 / 398502 Next

Another newbie question

Kia ora Allen

I'm not sure what you have tried or what your level of understanding is.
However, if your dataframe is:
sp1 sp2 sp3
1   0   0   1
2   1   0   1
3   1   1   1
4   0   0   0
'data.frame':   4 obs. of  3 variables:
 $ sp1: int  0 1 1 0
 $ sp2: int  0 0 1 0
 $ sp3: int  1 1 1 0

Then looking at the output from:

paste(names(allen)[as.logical(unlist(allen[2,]))], collapse='; ')

may help you. 

Hei kona ra ...

Peter Alspach
The contents of this e-mail are confidential and may be subject to legal privilege.
 If you are not the intended recipient you must not use, disseminate, distribute or
 reproduce all or any part of this e-mail or attachments.  If you have received this
 e-mail in error, please notify the sender and delete all material pertaining to this
 e-mail.  Any opinion or views expressed in this e-mail are those of the individual
 sender and may not represent those of The New Zealand Institute for Plant and
 Food Research Limited.