heartrate: heart rate

heartrateR Documentation

heart rate

Description

Fantasy heart rate data for the demonstration of function cleaner.

Usage

heartrate

Format

A data.frame with 100 rows and 4 columns:

person

person identifier

condition

fantasy condition a-e in which the person is in at the time of heart rate measurement

hearrate

the heart rate of the person

timestamp

time point of heart rate measurement

Note

created thus:

set.seed(2)
heartrate <- data.frame(person = sample(1:100, size = 100, replace = TRUE),
                        condition = sample(letters[1:6], size = 100, replace = TRUE),
                        heartrate = round(rnorm(100, 80, 10)),
                        timestamp = seq.POSIXt(from = as.POSIXct("2022-08-24 08:00"),
                                               to = as.POSIXct("2022-08-24 10:00"),
                                               length.out = 100))

joheli/kungfu documentation built on March 25, 2024, 10:10 a.m.