I’m an R Markdown document!
Here’s a code chunk that samples from a normal distribution:
samp = rnorm(100)
length(samp)
## [1] 100
This code came from Angel!
samp = rnorm(500)
samp_abs <- abs(samp)
hist(samp_abs)
(Bulleted list from Ahlam; Lizzy gave an example of inline R code):
I can take the mean of the sample, too! The length is 1.