add_class: Convenience function to add a class

Description Usage Arguments Examples

View source: R/radiant.R

Description

Convenience function to add a class

Usage

1
add_class(x, cl)

Arguments

x

Object

cl

Vector of class labels to add

Examples

1
2
foo <- "some text" %>% add_class("text")
foo <- "some text" %>% add_class(c("text", "another class"))

radiant-rstats/radiant.data documentation built on Nov. 13, 2018, 6:57 a.m.