student_sleep | R Documentation |
A simulated dataset for how much 110 college students each slept in a single night.
student_sleep
A data frame with 110 observations on the following variable.
Number of hours slept by this student (simulated).
Simulated data.
set.seed(2)
x <- exp(c(
rnorm(100, log(7.5), 0.15),
rnorm(10, log(10), 0.196)
))
x <- round(x - mean(x) + 7.42, 2)
identical(x, student_sleep$hours)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.