i_as_factor: as factor

View source: R/coerce.R

i_as_factorR Documentation

as factor

Description

make factor from i_labelled

Usage

i_as_factor(
  x,
  missing_to_na = FALSE,
  require_all_labels = FALSE,
  keep_attributes = FALSE
)

Arguments

x

vector

missing_to_na

as missing declared values will become NA

require_all_labels

process will be interrupted, when not all values have valid labels

keep_attributes

should attributes be preserved

Value

vector of class factor


ilabelled documentation built on April 3, 2025, 10:38 p.m.