Learn R Programming

spork (version 0.1.1)

sporklet: Parse Spork

Description

Parses spork. Converts length-one character to vector of tokens. Explicit tokens include *._^ and any of these escaped with backslash, e.g. '\*'. One or more consecutive whitespace characters are a single token, as are one or more consecutive octothorpes (#). Any string of characters delimited by one or more of the above is implicitly a token as well.

Usage

sporklet(x, ...)

Arguments

x

length-one character using spork syntax; coerced to character

...

ignored arguments

Value

character

Examples

Run this code
# NOT RUN {
sporklet('one joule (Omega) ~ 1 kg*m^2./s^2')
# }

Run the code above in your browser using DataLab