downsample_digital_timeseries_r: here's a pure R version of downsampling a categorical/digital...

View source: R/downsample_digital_timeseries_r.R

downsample_digital_timeseries_rR Documentation

here's a pure R version of downsampling a categorical/digital timeseries

Description

here's a pure R version of downsampling a categorical/digital timeseries

Usage

downsample_digital_timeseries_r(x, downsamp, demote_zeros = TRUE)

Arguments

x

input digital (categorical) timeseries vector

downsamp

downsampling factor (integer > 1)

demote_zeros

If TRUE, don't allow zero to be the retained value within a downsampled chunk


PennStateDEPENdLab/experiment_pipeline documentation built on Nov. 27, 2024, 4:56 a.m.