identify_periods: IDENTIFY PERIODS OF INTEREST

View source: R/identify_periods.R

identify_periodsR Documentation

IDENTIFY PERIODS OF INTEREST

Description

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


roaldarbol/sleepr documentation built on May 9, 2024, 11:30 p.m.