Description Usage Arguments Examples
Given a string or a fraction parsed using parse_fraction()
, this
function will check to see whether it is in its improper form, and
if not, it will convert it to an improper fraction.
1 | as_improper(fraction)
|
fraction |
The input fraction, already parsed, or a string to
be parsed using |
1 2 3 4 5 6 7 | frac <- "-3 1/2"
as_improper(frac)
p_frac <- parse_fraction(frac, improper = FALSE)
as_improper(p_frac)
as_improper("3")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.