Displaying 1 result from an estimated 1 matches for "one_presence".
Did you mean:
old_presence
2011 Jan 27
2
identifying when one element of a row has a positive number
...column that tells when
only 1 of the three variables has a value greater than 0. I would like
this new column to give the name of the variable. Likewise, I would
like a column that tells one only one of the three variables for a
given row has a value of 0. For my example the new columns would be:
one_presence<-c("ANN","CTA","GLM","NA","ANN","NA","NA","NA","NA","CTA")
one_absence<-c("NA","NA","NA","NA","NA","NA","GLM","CTA&quo...