Unable to Knit PDF - Error in code

Cannot knit my code into a pdf file. I do not understand what's the error in head(data)?

rsz_student

You forgot to read the information in variable data and now the function data is used which explains the error (?)

But even if I put summary into the next chunk of code, I get the same error in the summary chunk.

In your text you say that you read the information but your code does not do that.
So the first time you use data (in head) the variable data will not be found.
Just insert in your code readLines or read.csv or whatever you need to get the information. E.g. data=read.csv("mydata.csv")

1 Like

Got it. Worked perfectly, thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.