powered by
Get or set the formatter for a parser
formatter(x)formatter(x) <- value
formatter(x) <- value
parser
formatter function to be set
The formatter attribute (should be a function) for the passed object (usually a parser object)
# NOT RUN { p <- parser('[0-9]+]') # Default formatter formatter(p) # Set formatter formatter(p) <- as.integer # Custom formatter formatter(p) # }
Run the code above in your browser using DataLab