search for: 363456

Displaying 1 result from an estimated 1 matches for "363456".

Did you mean: 36345
2011 May 21
4
Looping through values in a data frame that are >zero
Hello! I've tried for a while - but can't figure it out. I have data frame x: y=c("a","b","c","d","e") z=c("m","n","o","p","r") a=c(0,0,1,0,0) b=c(2,0,0,0,0) c=c(0,0,0,4,0) x<-data.frame(y,z,a,b,c,stringsAsFactors=F) str(x) Some of the values in columns a,b, and c are >0: I need to