I’m an R Markdown document!

Section 1

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):

  • The mean of my altered sample is 0.65.
  • The median of my altered sample is 0.8.
  • The standard deviation of my altered sample is 0.6.

Section 2

I can take the mean of the sample, too! The length is 1.