wrap | R Documentation |
Wraps characters
in round brackets.
wrap(x)
x |
|
Characters are automatically wrapped when performing basic symbolic operations to prevent unwanted results. E.g.:
a+b * c+d
instead of
(a+b) * (c+d)
To disable this behaviour run options(calculus.auto.wrap = FALSE)
.
character
.
Guidotti E (2022). "calculus: High-Dimensional Numerical and Symbolic Calculus in R." Journal of Statistical Software, 104(5), 1-37. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v104.i05")}
Other utilities:
c2e()
,
e2c()
,
evaluate()
### wrap characters
wrap("a+b")
### wrap array of characters
wrap(array(letters[1:9], dim = c(3,3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.