Description Usage Arguments Details Value See Also Examples
In-place operations like i += 1
, i -= 1
is not support in
R. These functions implement these operations in R.
1 2 3 4 5 |
e1 |
object, most likely a numeric object |
e2 |
the operation value, the value to add, subtract, multiply, divide of. |
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
.
No return, directly assign the value back to e1
If you want shiny::reactiveVal version of these operators, check spsComps. shiny::reactiveValues operation will be the same as normal values.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.