Keep getting NAs in the knitted document even though everything is fine in RStudio

13 weergaven
Naar het eerste ongelezen bericht

Alina Oshina

ongelezen,
2 feb 2020, 13:34:1902-02-2020
aan knitr

Hi everyone,

I am really confused with this problem... When the code is evaluated within RStudio, everything works fine:kablesnip1.PNG

But, when I press the knit button and the document opens, I get a table with NAs:
knittedCapture.PNG
What can possibly be the problem?
Thanks

Christopher Bratt

ongelezen,
2 feb 2020, 14:49:1702-02-2020
aan knitr
Have you restarted R before trying the code interactively?
If you restart R and then get the same NA result in interactive work, it should be easy to spot the error in your code.
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten