text text
text text
echo("this code is skipped")
echo("this code is retained")
::: challenge
Text text
v <- rnorm(10) the_sum <- 0 for (i in v) { the_sum <- the_sum + i } the_mean <- the_sum / length(v)
How do you simplify this?
:::: solution
You can use the mean()
function
mean(rnorm(10))
::::
:::
Text that will no longer exist
:::::: challenge
A small challenge here with just text
:::: solution
cat("this is the solution")
::::
:::
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.