Closed jorgesinval closed 3 years ago
Not at this point in time, although it would be trivial to use sprintf
to insert those values in the string (bonus: you get to control how the values you interpolate into the string are formatted!):
TeX(sprintf(r'($p = %.1f; E(X)=%f; Var(X)=%.1f$)', p_1, exp_v_1, var_v_1),
italic = T)
Thank you! I will keep an eye on updates.
Is it possible to vector values (using R objects) within the
TeX
expression?Example (It did not work; I had to include the values manually in the TeX code):
Desired behavior resulting in: