replace_fmt | R Documentation |
Replaces in a text names with
values which are formatted with exams::fmt()
, or
strings.
replace_fmt(txt, digits = 2L, ...)
txt |
character: text where replacment is done |
digits |
numeric or list: number of digits to round |
... |
names to replace with values |
character with replaced names
replace_fmt("\\frac{x}{y}", x=2, y=3)
replace_fmt("\\frac{x}{y}", x=2, y=3, digits=0)
replace_fmt("\\frac{x}{y}", x=2, y=3, digits=list(0))
replace_fmt("\\frac{x}{y}", x=2, y=3, digits=list(2, y=0))
replace_fmt("\\frac{x}{y}", x="\\\\sum_{i=1}^n x_i", y="\\\\sum_{i=1}^n y_i")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.