Modifies a value
modify-set.RdThis function does the same as x <- x + sign*value, but without
repeating x. The expression modify(x) <- rnorm(length(x),0,1)
will add Gaussian noise to it. This is meant as a replacement for
the x += 1 syntax of C, it exists only for aesthetic reasons.
Arguments
- x
a numeric value to be modified
- i
row-indices of
xto be modified- j
column-indices of
xto be modified- sgn
modification