Description Usage Arguments Details Value Examples
Increase the value of an object on the search path. Equivalent to x++
or x += by
in other languages.
1 |
x |
object to be incremented; can be a symbol, character, or extraction language object. |
by |
value to increase |
incr
quotes object x
, then attempts to determine the primary object to be modified.
For example, z
will be the 'primary object' in incr(z[1:4])
. incr
then searches
for the primary object in the search path and records the environment. x <- x + by
is then
evaluated within the recorded environment.
The quoted object can be a symbol or character object. It can also be language object, though the primary
call must be either `$`
, `[`
, or `[[`
. These can be nested. For example, x[1]
or x[2, 1][3]
is acceptable, but sqrt(x)
is not.
See decr
to decrease the value.
the value of x
incremented by by
, invisibly
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.