.modClass | R Documentation |
Add or remove a class name from an object
.addClass(x) <- value .removeClass(x) <- value
x |
an R object. |
value |
character vector of lenght 1. |
an R object.
Internal function only for convenience
x = list(a="foo", b="bar") class(x) # [1] "list" ## Not run: .addClass(x) <- "blubb" class(x) # [1] "blubb" "list" .addClass(x) <- "blubb" class(x) # [1] "blubb" "list" .removeClass(x) <- "blubb" class(x) # [1] "list" ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.