R Markdown Knitting

This post explains what a [REPRoducible EXample (reprex)] is

You have to include in your Rmd file the same commands you used to "import it" (to load it actually) into your working environment. The reason for this is that when you knit an Rmd document the code gets executed in a clean environment other than the one you are currently working on so the data you have loaded interactively doesn't exist in that environment.

Posting screenshots is considered a bad practice here, post formatted code instead. Here is how to do it.