Skip to contents

A vector of categorical values.

Usage

type_factor(levels = NULL, ordered = FALSE)

Arguments

levels

Optional Character: The declared levels. Without them, the levels come from the data.

ordered

Logical: An ordered factor.

Value

An r8_field_type.

Examples

type_factor(levels = c("+", "-", "*"))
#> <r8 field type> factor {"+", "-", "*"}