Description Usage Arguments Value Note Author(s) See Also Examples
Converts fractions for inline rendering.
1 |
num |
Either a vector of values for the numerators,
or, if |
denom |
Vector of values for the denominators, or |
format |
Character vector of length one giving the format of the output.
Default of "markdown" uses super script for the numerator,
a slash, then subscript for the denominator.
Alternatively, "latex" uses |
Character vector of the fractions
If passing fractions, the function assumes that there is exactly one "/" in each fraction, and will return "NA" for the denominator if none is present or truncate the fraction if more than one "/" is included.
Mark Peterson
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.