SyntaxFix
Write A Post
Hire A Developer
Questions
You can use filter from dplyr package.
Let's call your data frame df
library(dplyr) df1 <- filter(df, Mac1 > 0, Mac2 > 0, Mac3 > 0, Mac4 > 0)
df1 will have only rows with entries above zero. Hope this helps.