Skip to content

Instantly share code, notes, and snippets.

@primaryobjects
Last active October 20, 2020 18:50
Show Gist options
  • Save primaryobjects/fd86f24249a7333a8c81 to your computer and use it in GitHub Desktop.
Save primaryobjects/fd86f24249a7333a8c81 to your computer and use it in GitHub Desktop.
Coursera Developing Data Products - Quiz 2
---
title: "Developing Data Products - Quiz 2"
output: html_document
---
Q1
===
In the slidify YAML text. Changing the framework from io2012 to shower does what?
**Answer**
It changes the html5 framework thus changing the style of the slides.
Q2
===
You wrote R code in a slidify document as follows
```{r, results='hide', eval=FALSE}
fit <- lm(y ~ x1 + x2 + x3)
summary(fit)
```
If you want to hide the results of the CODEsummaryCODE statement (yet still have it run) what should you do?
**Answer**
Add a results = 'hide' option in the {r} call of the code chunk
Q3
===
You wrote R code in a slidify document as follows
```{r, echo=FALSE}
y <- rpois(10, 1)
x1 <- sample(1:10)
x2 <- sample(1:10)
x3 <- sample(1:10)
fit <- lm(y ~ x1 + x2 + x3)
summary(fit)
```
If you want to display the results, but not the actual code, what should you do?
**Answer**
Add a echo = FALSE option in the {r} call of the code chunk
Q4
===
R studio presentation tool does what?
**Answer**
Creates HTML5 slides using a generalized markdown format having an extention Rpres and creates reproducible presentations by embedding and running the R code from within the presentation document.
Q5
===
In Rstudio presenter, if you do not want the code to be evaluated, what option do you need to add to the {r} options?
**Answer**
eval = FALSE
Q6
===
When presenting data analysis to a broad audience, which of the following should be done?
**Answer**
Explain why each step was necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment