powered by
With unclass<- you can circumvent class dispatch on the assignment operator
unclass<-
unclass(x) <- value
the modified object
some object
the value to be assigned
Jens Oehlschlägel
unclass, undim
unclass
undim
x <- factor(letters) unclass(x)[1:3] <- 1L x
Run the code above in your browser using DataLab