Skip to content

Commit

Permalink
Update repeat.qmd
Browse files Browse the repository at this point in the history
Fix spacing issue
  • Loading branch information
NeuroShepherd authored Sep 3, 2024
1 parent 80618cc commit d5334ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tutorial_pages/repeat.qmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Repetition

The function

* `replicate(nrep, expression)` repeats the `expression` provided `nrep` times.

e.g. `replicate(10, mean(rnorm(100)))` reads: 'draw 100 values from a normal distribution with a mean 0 and sd 1 (the default values), calculate the mean of these 100 values, and do all that 10 times.'
Expand Down

0 comments on commit d5334ed

Please sign in to comment.