construct_class_path: Construct class path

View source: R/classes_data.R

construct_class_pathR Documentation

Construct class path

Description

Construct class path

Usage

construct_class_path(x, subclass, prefix = TRUE, sep = "_")

Arguments

x

ANY

subclass

character Name of desired subclass. Can be a vector of length > 1

prefix

logical

  • TRUE (default): subclass is prefixed with first element of class path of x

  • FALSE: subclass becomes stand-alone entity within class path

Examples

construct_class_path(x = logical(), "sub")

construct_class_path(x = logical(), c("sub_sub", "sub"))

construct_class_path(
    x = numeric(),
    subclass = "sub",
    prefix = FALSE
)

rappster/laker documentation built on Aug. 15, 2022, 10:13 p.m.