Created
August 13, 2020 22:06
-
-
Save mine-cetinkaya-rundel/a393d3417767f902f3e23bce3da21686 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
output: learnr::tutorial | |
runtime: shiny_prerendered | |
--- | |
```{r setup, include=FALSE} | |
library(learnr) | |
``` | |
## Exercise with Hint | |
Modify the following code to limit the number of rows printed to 5: | |
```{r print-limit, exercise=TRUE, exercise.eval=TRUE} | |
mtcars | |
``` | |
<div id="print-limit-hint-1"> | |
**Hint:** What about `head()`? | |
</div> | |
```{r print-limit-hint-2} | |
head(mtcars) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment