Inline R Code
This lesson is called Inline R Code, part of the R in 3 Months (Fall 2022) course. This lesson is called Inline R Code, part of the R in 3 Months (Fall 2022) course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
Add a line to your report that uses inline R code
Learn More
To learn more about inline R code, check out lesson 4 of the RMarkdown series on the RStudio website as well as Chapter 6 of Nick Tierney's book titled RMarkdown for Scientists.
I use a few functions in this lessons you may not be familiar with. Here are links to the documentation for pull() and unique(). I also use Sys.Date() , which returns the current date in the format YYYY-MM-DD. If you want nicely formatted dates (e.g. May 22, 2020), check out the add_readable_time() function from the blastula package.
Have any questions? Put them below and we will help you out!
Course Content
142 Lessons
You need to be signed-in to comment on this post. Login.