Hello everyone !
I'm getting a strange behavior when, in the console, the variable is displayed like this :
totalAMOUNT
[1] 11849.67
and with Rmarkdown : display `r totalAMOUNT`
gives : display 1.19567210^{4}
Where does this difference in format and value come from?
Many thanks in advance for any cue !!
Olivier
DavoWW
November 30, 2020, 6:46am
2
Hi @Olivier-Denis ,
See here for several ways to fix this behavior of defaulting to scientific notation in R markdown output:
https://stackoverflow.com/questions/48931389/render-pdf-document-with-the-inline-r-code-output-number-more-than-5-digits
The apparent change in value of totalAMOUNT
is NOT expected - looks like there is a bug elswehere in your code.
HTH
Thanks @DavoWW .
As usual, the point is to find the good formulation of the problem, and then find the solution given in the forum and not posting it again...
Cheers,
Olivier-Denis
cderv
December 1, 2020, 8:34am
4
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
If your question has been answered, don't forget to mark the solution!
How do I mark a solution?
Find the reply you want to mark as the solution and look for the row of small gray icons at the bottom of that reply. Click the one that looks like a box with a checkmark in it:
[image]
Hovering over the mark solution button shows the label, "Select if this reply solves the problem". If you don't see the mark solution button, try clicking the three dots button ( ••• ) to expand the full set of options.
When a solution is chosen, the icon turns green and the hover label changes to: "Unselect if this reply no longer solves the problem". Success!
[solution_reply_author]
…
system
Closed
December 8, 2020, 8:34am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.