Skip to content

Commit

Permalink
Update iteration.Rmd
Browse files Browse the repository at this point in the history
Correcting typo in exercise code
  • Loading branch information
MJMarshall committed Mar 26, 2016
1 parent 5c7cf27 commit d8f3bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iteration.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ That's all there is to the for loop! Now is a good time to practice creating som
x <- sample(100)
sd <- 0
for (i in seq_along(out)) {
for (i in seq_along(x)) {
sd <- sd + (x[i] - mean(x)) ^ 2
}
sd <- sqrt(sd) / (length(x) - 1)
Expand Down

0 comments on commit d8f3bbd

Please sign in to comment.