Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

factor_var

Unordered Categorical Variable


Description

Formal description of an unordered categorical variable

Usage

factor_var(name, desc = NULL, levels, ...)

Arguments

name

character, the name of the variable

desc

character, a description of what is measured

levels

character, the levels of the factor

...

ignored

Details

A conceptual description of a (yet) unobserved unordered categorical variable.

Value

An object of class factor\_var inheriting from var with corresponding methods.

Examples

factor_var("eye", "eye color", c("blue", "brown", "green", "grey", "mixed"))

variables

Variable Descriptions

v1.1-0
GPL-2
Authors
Torsten Hothorn [aut, cre] (<https://orcid.org/0000-0001-8301-0471>)
Initial release
2021-03-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.