DF <-
data.frame
(x =
c
(1, 2, 3), y =
(0, 10,
NA
))
DF
## remove the lines with NA
na.omit
(DF)
## remove the lines with 0
DF[DF == 0] =
Hide Comments
Hide Comments