I want to know how to omit NA values in a data frame, but only in some columns I am interested in.
NA
For example,
DF <- data.frame(x =
Just try this:
DF %>% t %>% na.omit %>% t
It transposes the data frame and omits null rows which were 'columns' before transposition and then you transpose it back.