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

dec(x) <- value

Arguments

x

object to be decremented

value

value by which x will be modified

Examples

x <- 6:10 dec(x) <- 5 x
#> [1] 1 2 3 4 5