downsample: Downsample a vector of type 'numeric'; nonsensical for...

View source: R/downsample.R

downsampleR Documentation

Downsample a vector of type numeric; nonsensical for negative values.

Description

Downsample a vector of type numeric; nonsensical for negative values.

Usage

downsample(x, thres = NULL, downsample_threshold = 3000)

Arguments

x

A numeric vector.

thres

Deprecated alternative to downsample_threshold.

downsample_threshold

If downsample_threshold >= 3,000, then all input values > downsample_threshold are downsampled. If downsample_threshold < 3,000, only some input values > downsample_threshold are downsampled but all input values > 3000 are downsampled. See show_downsample_curves.

Value

A vector of integers (type numeric) of the same length as x, downsampled as described in the documentation for the downsample_threshold argument.


steverozen/mSigHdp documentation built on Feb. 6, 2023, 1:36 a.m.