You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the chunk of code individually from Rmarkdown the output is a "knit_asis" type table that perfectly displays the table (including the labels for each variable). However, when I generate a word document using "knitr" the names shown in the table are those of the original variables (e.g. "age") and not the labels assigned to them (e.g. "Age in Years"). It seems that the problem is at the moment of generating the word document. I don't know if there is an option to show the labels and not the original variable name. Thank you.
Output in Rmarkdown
Output in Word
The text was updated successfully, but these errors were encountered:
I just realized that I would have to specify in the function "summary", argument "labbelTranslations", the name of the labels of each variable for it to appear in the word, even though by default each variable has a label assigned to it. That is to say, if I do not specify the value of the argument "labbelTranslations" in the output of the chunk of code, I still get the labels and not the original name of the variable. Is there any way to show the labels already assigned automatically?
Without seeing your session, it's hard for me to tell what's going on. I'm wondering if your interactive objects aren't matching what gets produced by Rmarkdown when you knit in a new session. If that's the case, try restarting your R session, running every code chunk above this one, and then seeing what the output is in the knit_asis environment.
When I run the chunk of code individually from Rmarkdown the output is a "knit_asis" type table that perfectly displays the table (including the labels for each variable). However, when I generate a word document using "knitr" the names shown in the table are those of the original variables (e.g. "age") and not the labels assigned to them (e.g. "Age in Years"). It seems that the problem is at the moment of generating the word document. I don't know if there is an option to show the labels and not the original variable name. Thank you.
Output in Rmarkdown
Output in Word
The text was updated successfully, but these errors were encountered: