Unclassed assignement
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
x <- factor(letters) unclass(x)[1:3] <- 1L x
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.