new_pofct: Low-level constructor for Partially Ordered Factors 'pofct'...

Description Usage Arguments Examples

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

Description

Low-level constructor for Partially Ordered Factors 'pofct' S3 class

Usage

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

Arguments

x

integer vector to index into levels and partial order

po

an edges data frame representing the partial order.

The partial order is a data frame of edges (e.g., with integer columns 'from' and 'to'). Each edge represents a has-subset relation, e.g. 'to' <= 'from', which is sort of a fat arrow.

Examples

1
new_pofct(c("whole", "part1", "part2"), po = tibble(from = c("whole", "whole"), to = c("part1", "part2")))

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