Learn R Programming

CarletonStats (version 2.2)

missingLevel: Missing observations in factors

Description

In data frames with factor variables, convert any observation with "" into <NA>.

Usage

missingLevel(data)

Value

Returns the same data frame with """" replaced by <NA>

in factor variables.

Arguments

data

a data frame with factor variables.

Author

Laura Chihara

Details

In a factor variable with the level """", this command will convert this to an <NA>.