Description Usage Arguments Value BUGS Note Author(s) References See Also Examples
Returns either NULL
or a two-column matrix where each row gives the
first and last character of a call to I
.
1 | .find.I.of(string, nesting.ok = FALSE)
|
string |
a single character string. |
nesting.ok |
logical value: if |
a numeric matrix with two columns, or NULL
.
Each row represents one call to I.
The first column is the number of the character within the string that
starts the call (i.e., the "I").
The second column is the number of the character within the string that
ends the call (the ")").
Parentheses inside quotes in the call to I will confuse it.
One or more spaces after the "I" will cause the call to be unrecognized. However, if the string is parsed and then deparsed, the space will go away.
This is used by mathgraph functions, and is not meant for direct use.
Nick Efthymiou
S Poetry, Patrick J. Burns, Section 11.2, p. 280
1 2 3 4 5 6 | .find.I.of("~ x + I(x^2)")
.find.I.of("~ x + I(x^2 + I(y^3))")
## Not run:
.find.I.of("~ x + I(x^2 + I(y^3))", TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.