tabulog (version 0.1.1)

formatter: Formatters

Description

Get or set the formatter for a parser

Usage

formatter(x)

formatter(x) <- value

Arguments

x

parser

value

formatter function to be set

Value

The formatter attribute (should be a function) for the passed object (usually a parser object)

Examples

Run this code
# 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