I have a df
with 15,105 rows
and 127 columns
. I'd like to exclude some specific colunms' rows that have NA
. I´m using the following command:
wave1b <- na.omit(wave1, cols=c("Bx", "Deq", "Gef", "Has", "Pla", "Ty"))
However, when I run it it returns with 19 rows
only, when it was expected to return with 14,561 rows
(if it should have excluded only the NA
in those specific colunms
requested). I'm afirming this, cause I did a subset on the df
in order to test the accuracy of the missing deletion.
Does anyone could help me solving this issue? Thank you!