Learn R Programming

spork (version 0.1.1)

spork_to_plotmath: Convert One Spork to Plotmath

Description

Converts one spork to plotmath. See description for as_spork. By default, unrecognized tokens are returned unmodified if they are parseable. Otherwise, backslashes and single quotes are escaped, and the result is wrapped in single quotes. See plotmathToken.

Usage

spork_to_plotmath(
  x,
  unrecognized = getOption("plotmath_unrecognized", "plotmathToken"),
  ...
)

Arguments

x

character

unrecognized

function to process unrecognized tokens: default plotmathToken

...

ignored

Value

character

See Also

Other plotmath: as_plotmath.spork(), as_plotmath(), goodToken(), plotmathToken()

Examples

Run this code
# NOT RUN {
library(magrittr)
'V_c./F' %>% spork_to_plotmath
'AUC_ss' %>% spork_to_plotmath
'C_max_ss' %>% spork_to_plotmath
'var^eta_j' %>% spork_to_plotmath
# }

Run the code above in your browser using DataLab