Learn R Programming

radiant.data (version 0.6.0)

add_class: Convenience function to add a class

Description

Convenience function to add a class

Usage

add_class(x, cl)

Arguments

x
Object
cl
Vector of class labels to add

Examples

Run this code
foo <- "some text" %>% add_class("text")
foo <- "some text" %>% add_class(c("text","another class"))

Run the code above in your browser using DataLab