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

ordered_var

Ordered Categorical Variable


Description

Formal description of an ordered categorical variable

Usage

ordered_var(name, desc = NULL, levels, sparse = FALSE, ...)

Arguments

name

character, the name of the variable

desc

character, a description of what is measured

levels

character, the ordered levels of the factor

sparse

logical, set-up a sparse model matrix

...

ignored

Details

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

Value

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

Examples

ordered_var("temp", "temperature", c("cold", "lukewarm", "warm", "hot"))

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.