Skip to content
Back to formatted view

Raw Message

Message-ID: <21337371.post@talk.nabble.com>
Date: 2009-01-07T18:28:02Z
From: AllenL
Subject: Another newbie question

Problem: 
I have a data frame with 1s and 0s denoting presence/absence of species
(columns) for particular plot measurements (rows). What I want to do is make
a new column whose entries for each row is a list of the column names in
which a species is present (ie. for row one its entry might read:
"sp1","sp2", etc.). I've tried various functions etc. but can't seem to get
the syntax right/ the correct combination of functions.
Thanks in advance!
-Allen

-- 
View this message in context: http://www.nabble.com/Another-newbie-question-tp21337371p21337371.html
Sent from the R help mailing list archive at Nabble.com.