Skip to contents

Setting the traits of the levels

Usage

lvls(value = NULL, n = NA_integer_, data = NULL, ...)

Arguments

value

A vector of the level values.

n

The number of replicate (if applicable).

data

A list or data frame of the same size as the levels.

...

Name-value pair denoting other level attributes. The value should be the same length as levels or a single value.

Value

An edbl_lvls object.

Examples

lvls(c("A", "B"))
#> <edbl_lvls[2]>
#> [1] A B