From 365697537c8461a390ffc3a5d5e56cb9595a8aaf Mon Sep 17 00:00:00 2001 From: "behinger (s-ccs 001)" Date: Wed, 11 Oct 2023 09:07:40 +0000 Subject: [PATCH] add broadcast tipp --- material/3_wed/vis/tasks.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/material/3_wed/vis/tasks.qmd b/material/3_wed/vis/tasks.qmd index d68b87e..2a4a2e0 100644 --- a/material/3_wed/vis/tasks.qmd +++ b/material/3_wed/vis/tasks.qmd @@ -70,7 +70,7 @@ Let's simulate 1000x datasets, each with a different seed, and take the mean ov ::: {.callout-tip collapse="true"} ## click to show tip -An easy way to call a function many times is to broadcast it on an array e.g. `1:1000` - you could also use `map` to do it, but I don't think it is as clear :) +An easy way to call a function many times is to broadcast it on an array e.g. `fun.(1:1000)` - you could also use `map` to do it, but I don't think it is as clear :) :::