Skip to contents

Included NA values into fact()

Usage

fact_na(x, remove = FALSE)

Arguments

x

A fact or object cohered to fact

remove

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

Value

A fact vector

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()