cough_bouts: Cough bouts

Description Usage Arguments Value

View source: R/cough_bouts.R

Description

Cough bouts

Usage

1
cough_bouts(coughs, bout_window = 2, bout_limit = Inf, verbose = TRUE)

Arguments

coughs

The coughs slot from a hyfe object, which is generated by process_hyfe_data(). See full details and examples in the package vignette.

bout_window

The time resolution of a bout. For example, bout_window = 2 will pool coughs that occur within two seconds of each other into a single cough bout.

verbose

Print status updates?

Value

A dataframe, analogous to the coughs dataframe (cough counts and rates along with many date/time variables), this time with counts and rates of bouts.


hyfe-ai/hyfer documentation built on Dec. 20, 2021, 5:53 p.m.