fact_na: 'fact' with 'NA'

View source: R/fact.R

fact_naR Documentation

fact with NA

Description

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

Details

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

Value

A fact vector

See Also

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


mark documentation built on May 29, 2024, 5:13 a.m.