Description Usage Arguments Value Examples
Get or set the formatter for a parser
1 2 3 |
x |
parser |
value |
formatter function to be set |
The formatter attribute (should be a function) for the passed object
(usually a parser
object)
1 2 3 4 5 6 7 8 9 10 | p <- parser('[0-9]+]')
# Default formatter
formatter(p)
# Set formatter
formatter(p) <- as.integer
# Custom formatter
formatter(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.