Learn R Programming

fgeo.tool (version 1.2.9)

drop_if_na: Drop if missing values.

Description

Valuable mostly for its warning.

Usage

drop_if_na(dfm, x)

Value

A dataframe.

Arguments

dfm

A dataframe.

x

String giving a column name of dfm.

See Also

Examples

Run this code
dfm <- data.frame(a = 1, b = NA)
drop_if_na(dfm, "b")
drop_if_na(dfm, "a")

Run the code above in your browser using DataLab