bin_data: bin_data

Description Usage Arguments Value Examples

View source: R/process_data.R

Description

function to bin data time-wise

Usage

1
bin_data(data, minutes_per_bin)

Arguments

data

the activity data to bin

minutes_per_bin

number of minutes per bin

Value

the data, after binning

Examples

1
2
3
f <- file.path(system.file(package = 'actogrammr'), 'testdata')
d <- read_clock_lab_files(file_names = list.files(path = f, full.names = TRUE))
b <- bin_data(data = d, minutes_per_bin = 6)

Example output

Warning message:
`as_data_frame()` is deprecated as of tibble 2.0.0.
Please use `as_tibble()` instead.
The signature and semantics have changed, see `?as_tibble`.
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated. 

actogrammr documentation built on May 1, 2019, 9:03 p.m.