I have a problem to solve how to remove rows with a Zero value in R. In others hand, I can use na.omit() to delete all the NA values or use complete.cases
na.omit()
complete.cases
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),]