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