From 46a870cb4a73df299a5a2e8a21abfa68f789564b Mon Sep 17 00:00:00 2001 From: ybensadik Date: Sun, 31 May 2015 23:31:00 +0200 Subject: [PATCH] Update index.md Edited line 209. Added a space between the number 7 and 10 (inserted a space in 9th column). Before the insertion, the number shown was 710 which is an impossible permutation of the sequence 1:10. --- 02_RProgramming/simulation/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_RProgramming/simulation/index.md b/02_RProgramming/simulation/index.md index 4bf7b977a..7557c5765 100644 --- a/02_RProgramming/simulation/index.md +++ b/02_RProgramming/simulation/index.md @@ -206,7 +206,7 @@ The `sample` function draws randomly from a specified set of (scalar) objects al > sample(letters, 5) [1] "q" "b" "e" "x" "p" > sample(1:10) ## permutation - [1] 4 710 6 9 2 8 3 1 5 + [1] 4 7 10 6 9 2 8 3 1 5 > sample(1:10) [1] 2 3 4 1 9 5 10 8 6 7 > sample(1:10, replace = TRUE) ## Sample w/replacement