led_bulb: Select a random sample of bulbs all time points.

Description Usage Arguments Examples

View source: R/sample.R

Description

A function to standardize the random selection of bulbs for the LED project in BYUI's MATH 119.

Usage

1
2
3
4
5
6
7
led_bulb(
  number_bulbs = 1,
  seed = 9012017,
  dat = data4led::led_study,
  columns_keep = c("id", "hours", "intensity", "normalized_intensity",
    "percent_intensity")
)

Arguments

number_bulbs

The number of bulbs to sample. Defaults to 1. The most changed argument to the function.

seed

is used to make the random sample reproducible. May change at teacher request.

dat

is the data object from which the sample is taken. Defaults to led_study.

columns_keep

are the columns that should be returned from dat. Defaults to keep all the columns.

Examples

1
led_bulb(2, seed = 1976)

byuidatascience/data4led documentation built on Dec. 19, 2021, 12:51 p.m.