unclass_- | R Documentation |
With unclass<-
you can circumvent class dispatch on the assignment operator
unclass(x) <- value
x |
some object |
value |
the value to be assigned |
the modified object
Jens Oehlschlägel
unclass
, undim
x <- factor(letters)
unclass(x)[1:3] <- 1L
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.