Learn R Programming

openintro (version 2.4.0)

yrbss_samp: Sample of Youth Risk Behavior Surveillance System (YRBSS)

Description

A sample of the yrbss data set.

Usage

yrbss_samp

Arguments

Format

A data frame with 100 observations on the following 13 variables.

age

Age, in years.

gender

Gender.

grade

School grade.

hispanic

Hispanic or not.

race

Race / ethnicity.

height

Height, in meters (3.28 feet per meter).

weight

Weight, in kilograms (2.2 pounds per kilogram).

helmet_12m

How often did you wear a helmet when biking in the last 12 months?

text_while_driving_30d

How many days did you text while driving in the last 30 days?

physically_active_7d

How many days were you physically active for 60+ minutes in the last 7 days?

hours_tv_per_school_day

How many hours of TV do you typically watch on a school night?

strength_training_7d

How many days did you do strength training (e.g. lift weights) in the last 7 days?

school_night_hours_sleep

How many hours of sleep do you typically get on a school night?

Examples

Run this code

table(yrbss_samp$physically_active_7d)

Run the code above in your browser using DataLab