add_class: Convenience function to add a class

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"))

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.