Convenience function to add a class

Share:

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.