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(), fact2char(), fact()


jmbarbone/jordan documentation built on April 1, 2024, 7:46 p.m.