Learn R Programming

mark (version 0.8.2)

fact_na: fact with NA

Description

Included NA values into fact()

Usage

fact_na(x, remove = FALSE)

Value

A fact vector

Arguments

x

A fact or object cohered to fact

remove

If TRUE removes NA value from the fact levels and uniques attributes

Details

This re-formats the x value so that NAs are found immediately within the object rather than accessed through its attributes.

See Also

Other factors: as_ordered(), char2fact(), drop_levels(), fact(), fact2char()