inc<- increments x by value. Equivalent to x <- x + value.

inc(x) <- value

Arguments

x

object to be incremented

value

value by which x will be modified

Examples

x <- 1:5 inc(x) <- 5 x
#> [1] 6 7 8 9 10