student.sleep: Sleep for 110 students (simulated)

Description Usage Format Source Examples

Description

A simulated data set for how much 110 college students each slept in a single night.

Usage

1
data("student.sleep")

Format

A data frame with 110 observations on the following variable.

hours

Number of hours slept by this student (simulated).

Source

Simulated data.

Examples

1
2
3
4
5
6
7
8
data(student.sleep)

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)

JECheadle/RSOC317L documentation built on May 15, 2019, 4:02 a.m.