*Here's a simple exercise with an empty code chunk provided for entering the answer.*
*Wo kommen die Daten her?*
Write the R code required to add two plus two:
Write the R code required to add two plus two:
...
@@ -22,9 +22,9 @@ Write the R code required to add two plus two:
...
@@ -22,9 +22,9 @@ Write the R code required to add two plus two:
```
```
### Exercise with Code
### Inhalt
*Here's an exercise with some prepopulated code as well as `exercise.lines = 5` to provide a bit more initial room to work.*
Was ist der Inhalt der Datensatz.
Now write a function that adds any two numbers and then call it:
Now write a function that adds any two numbers and then call it:
...
@@ -34,9 +34,17 @@ add <- function() {
...
@@ -34,9 +34,17 @@ add <- function() {
}
}
```
```
## Topic 2
### Hypothesen
### Exercise with Hint
*Mindestens 2 Hypothesen*
Mindestens 2 Hypothesen
## Datenaufbereitung
### Einlesen von Daten
*Here's an exercise where the chunk is pre-evaluated via the `exercise.eval` option (so the user can see the default output we'd like them to customize). We also add a "hint" to the correct solution via the chunk immediate below labeled `print-limit-hint`.*
*Here's an exercise where the chunk is pre-evaluated via the `exercise.eval` option (so the user can see the default output we'd like them to customize). We also add a "hint" to the correct solution via the chunk immediate below labeled `print-limit-hint`.*
...
@@ -50,6 +58,12 @@ mtcars
...
@@ -50,6 +58,12 @@ mtcars
head(mtcars)
head(mtcars)
```
```
### Inkonsistenzen und Leerstellen beheben
*Here's an exercise where the chunk is pre-evaluated via the `exercise.eval` option (so the user can see the default output we'd like them to customize). We also add a "hint" to the correct solution via the chunk immediate below labeled `print-limit-hint`.*
Modify the following code to limit the number of rows printed to 5:
### Quiz
### Quiz
*You can include any number of single or multiple choice questions as a quiz. Use the `question` function to define a question and the `quiz` function for grouping multiple questions together.*
*You can include any number of single or multiple choice questions as a quiz. Use the `question` function to define a question and the `quiz` function for grouping multiple questions together.*