pofct: Helper for more convenient partial order factor creation

Description Usage Arguments Examples

View source: R/partial-order-factor.R

Description

Helper for more convenient partial order factor creation

Usage

1
pofct(x = character(), po = tibble(from = character(), to = character()))

Arguments

x

the values

po

tibble representing partial order with symbolic columns 'from' and 'to'

levels

optional character vector, mostly for ordering.

Examples

1
pofct(c("fruit", "apples", "bananas"), po = tibble(from=c("fruit", "fruit"),to=c("apples", "bananas")))

jameelalsalam/nestedcats documentation built on June 2, 2020, 8:16 p.m.