Learn R Programming

contextual (version 0.9.8.4)

inc<-: Increment

Description

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

Usage

inc(x) <- value

Arguments

x

object to be incremented

value

value by which x will be modified

Examples

Run this code
# NOT RUN {
x <- 1:5
inc(x) <- 5
x

# }

Run the code above in your browser using DataLab