SyntaxFix
Write A Post
Hire A Developer
Questions
I would do the following.
Set the zero to NA.
data[data==0] <- NA data
Delete the rows associated with NA.
data2<-data[complete.cases(data),]