+ - 0:00:00
Notes for current slide
Notes for next slide

Random Sampling in R

runif(5)
## [1] 0.6603010 0.2128174 0.9295110 0.3853349 0.9406041
1 / 5

Random Sampling in R

runif(5)
## [1] 0.6603010 0.2128174 0.9295110 0.3853349 0.9406041
rnorm(5)
## [1] -1.0955462 -0.6948217 -1.2703253 -0.8511528 -0.8644646
2 / 5

Random Sampling in R

runif(5)
## [1] 0.6603010 0.2128174 0.9295110 0.3853349 0.9406041
rnorm(5)
## [1] -1.0955462 -0.6948217 -1.2703253 -0.8511528 -0.8644646
rbinom(5, 1, 0.5)
## [1] 1 0 0 0 0
3 / 5

Random Sampling in R

runif(5)
## [1] 0.6603010 0.2128174 0.9295110 0.3853349 0.9406041
rnorm(5)
## [1] -1.0955462 -0.6948217 -1.2703253 -0.8511528 -0.8644646
rbinom(5, 1, 0.5)
## [1] 1 0 0 0 0
rcauchy(5)
## [1] -2.1805304 -0.2111934 -4.0321234 -0.4011822 2.3580361
4 / 5

show-only-last-code-result

Use this CSS chunk with the slide class: show-only-last-code-result.

```{css echo=FALSE}
.show-only-last-code-result pre + pre:not(:last-of-type) code[class="remark-code"] {
display: none;
}
```
5 / 5

Random Sampling in R

runif(5)
## [1] 0.6603010 0.2128174 0.9295110 0.3853349 0.9406041
rnorm(5)
## [1] -1.0955462 -0.6948217 -1.2703253 -0.8511528 -0.8644646
2 / 5
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow