IDENTIFY PERIODS OF INTEREST
Usage
identify_periods(data, var, newvar, threshold = "minmax", as_factor = FALSE)
Arguments
- data
Data frame
- var
Variable to be identified
- newvar
New variable name
- threshold
Method for thresholding. Either "minmax", "mediansd" or a number.
- as_factor
Whether an output should be returned as factor
Value
Thresholded data frame