decimate.with.na: Decimates a vector, that contains NAs

Description Usage Arguments Author(s) Examples

View source: R/decimate.with.na.R

Description

Based on decimate function from the "signal" package. By default, an order 8 Chebyshev type I filter is used or a 30-point FIR filter if ftype is 'fir'. Note that q must be an integer for this rate change method. Makes use of the filtfilt function with all its limitations.

Usage

1
decimate.with.na(vect, q, n = if (ftype == "iir") 8 else 30, ftype = "iir")

Arguments

q

integer factor to downsample by.

n

filter order used in the downsampling.

ftype

filter type, "iir" or "fir"

x

signal to be decimated, may contain NAs.

Author(s)

Nuzhdin Urii, Anastasia Fedorova

Examples

1

mayenok/hybridEyeEEG documentation built on May 21, 2019, 2:19 p.m.