ff (version 4.0.12)

unclass_-: Unclassed assignement

Description

With unclass<- you can circumvent class dispatch on the assignment operator

Usage

unclass(x) <- value

Value

the modified object

Arguments

x

some object

value

the value to be assigned

Author

Jens Oehlschlägel

See Also

unclass, undim

Examples

Run this code
  x <- factor(letters)
  unclass(x)[1:3] <- 1L
  x

Run the code above in your browser using DataLab