jwutil (version 1.2.3)

drop_rows_with_na: drops rows with NA values in specified fields

Description

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)

Usage

drop_rows_with_na(x, fld = names(x), verbose = FALSE)

dropRowsWithNAField(x, fld = names(x), verbose = FALSE)

Arguments

x

data frame

fld

vector with names of fields which must have no NA values

verbose

single logical value, if TRUE then produce verbose messages

Value

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.

Functions

  • dropRowsWithNAField: Deprecated, use drop_rows_with_na