ordered_var: Ordered Categorical Variable

Description Usage Arguments Details Value Examples

View source: R/variables.R

Description

Formal description of an ordered categorical variable

Usage

1

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

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

variables documentation built on June 17, 2021, 5:08 p.m.