In-place operations like `i += 1`, `i -= 1` is not support in
R. These functions implement these operations in R.
Usage
inc(e1, e2 = 1)
mult(e1, e2 = 2)
divi(e1, e2 = 2)
Value
No return, directly assign the value back to `e1`
Arguments
e1
object, most likely a numeric object
e2
the operation value, the value to add, subtract, multiply, divide of.
Details
`inc(i)` is the same as `i <- i + 1`.
`inc(i, -1)` is the same as `i <- i - 1`.
`mult(i)` is the same as `i <- i * 2`.
`divi(i)` is the same as `i <- i / 2`.
See Also
If you want [shiny::reactiveVal] version of these operators,
check [spsComps](https://systempipe.org/sps/funcs/spscomps/reference/). [shiny::reactiveValues]
operation will be the same as normal values.