Learn R Programming

contextual (version 0.9.8.4)

dec<-: Decrement

Description

dec<- decrements x by value. Equivalent to x <- x - value.

Usage

dec(x) <- value

Arguments

x

object to be decremented

value

value by which x will be modified

Examples

Run this code
# NOT RUN {
x <- 6:10
dec(x) <- 5
x

# }

Run the code above in your browser using DataLab