drop_rows_with_na: drops rows with NA values in specified fields

Description Usage Arguments Value Functions

View source: R/na.r

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

1
2
3
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


jwutil documentation built on May 7, 2019, 1:03 a.m.