Complete the code to start an R Markdown document with the correct YAML header.
--- title: "My Document" output: [1] ---
The output field specifies the format of the R Markdown output. html_document creates an HTML file.
Complete the code to insert an R code chunk in R Markdown.
```[1]
summary(cars)
```R code chunks start with ```r in R Markdown.
Fix the error in the YAML header to correctly specify the author.
--- title: "Analysis" author: [1] output: html_document ---
The author name must be a string in quotes in YAML to be valid.
Fill both blanks to create a code chunk with echo turned off.
```[1] [2] plot(pressure) ```
The chunk language is r and echo=FALSE hides the code in the output.
Fill all three blanks to create a YAML header with title, author, and date.
--- title: [1] author: [2] date: [3] output: html_document ---
YAML strings should be quoted. The date is also quoted as a string.
