drop_rows_with_na {jwutil} | R Documentation |
employs complete.cases
which is fast
internal C code. Returns a data frame with unused factor levels dropped
(these may have been introduced by dropping rows with some NA values)
drop_rows_with_na(x, fld = names(x), verbose = FALSE) dropRowsWithNAField(x, fld = names(x), verbose = FALSE)
x |
data frame |
fld |
vector with names of fields which must have no NA values |
verbose |
single logical value, if |
data frame without rows containing NA in the specified data fields. There may be NA values in the resulting data frame in fields which are not listed in fld.
dropRowsWithNAField
: Deprecated, use drop_rows_with_na