format.parser: Encode for printing

Description Usage Arguments Examples

Description

Format a parser object for printing

Usage

1
2
## S3 method for class 'parser'
format(x, ...)

Arguments

x

parser to be formatted

...

other arguments to be passed to format.character

Examples

1
2
3
4
# No name, default formatter
format(parser('[0-9]+'))
# Custom name and formatter
format(parser('[0-9]+]', as.integer, name='int'))

tabulog documentation built on Aug. 9, 2019, 5:07 p.m.