stringifyTerm | R Documentation |
Converts a term (a vector of components) into a string for display purposes
stringifyTerm(components, sep = getOption("jmvTermSep", ":"),
raise = FALSE)
components |
a character vector of components |
sep |
a separator to go between the components |
raise |
whether duplicates should be raised to powers |
the components joined together into a string for disply
stringifyTerm(c('a', 'b', 'c'))
# "a:b:c"
stringifyTerm(c('a', 'b', 'c'), sep=' * ')
# "a * b * c"
options('jmvTermSep', ' * ')
stringifyTerm(c('a', 'b', 'c'))
# "a * b * c"
#' stringifyTerm(c('`quoted`', 'b', 'c'))
# "quoted * b * c"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.