R/indexing.R
setAt.Rd
Chainable functional alias of x[i] <- value.
x[i] <- value
setAt(x, i, value)
An object to modify.
The index at which the value should be set.
The value to assign at the specified index.
The modified object, with the value set at the specified index.
x <- c(1, 2, 3, 4, 5) setAt(x, 2, 10) #> [1] 1 10 3 4 5