led_time: Select all bulbs at the nearest time.

Description Usage Arguments Examples

View source: R/sample.R

Description

A function to standardize the time point selection for all LED bulbs for the LED project in BYUI's MATH 119.

Usage

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

Arguments

time_bulb

The bulb time that you would like. The most changed argument to the function.

number_bulbs

The number of bulbs to sample. Defaults to all.

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.

Examples

1
led_time(425, number_bulbs = 10, seed = 1976)

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