powered by
Add class to object whilst keeping the old classes
add_class(x, class)
a R object
A character vector naming classes
library(purrr) l <- list(important_number = 42) %>% add_class("my_list")
Run the code above in your browser using DataLab