Learn R Programming

radiant.data (version 0.8.1)

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
# NOT RUN {
foo <- "some text" %>% add_class("text")
foo <- "some text" %>% add_class(c("text","another class"))

# }

Run the code above in your browser using DataLab