Skip to contents

Work on a whole aniframe

Apply a named method across the spatial columns, within groups.

filter_across() experimental
Apply a filter across an aniframe's spatial columns
filter_na_across() experimental
Mask values to NA across an aniframe's spatial columns
replace_na_across() experimental
Fill missing values across an aniframe's spatial columns

Choose a method by name

The same, for a vector or a frame of coordinates inside mutate().

filter_with()
Apply a filter by name
filter_na_with()
Mask values to NA by a named criterion
replace_na_with()
Fill missing values by a named method

Mask unreliable observations

Replace values that fail a quality criterion with NA.

filter_na_confidence()
Filter low-confidence values in a dataset
filter_na_excursion()
Filter Out Position Excursions That Return
filter_na_range()
Filter values outside a range to NA
filter_na_roi()
Filter coordinates outside a region of interest (ROI)
filter_na_speed()
Filter values by speed threshold

Fill missing values

Fill gaps by interpolation, carrying forward, or a constant.

replace_na_linear()
Replace Missing Values Using Linear Interpolation
replace_na_locf()
Replace Missing Values Using Last Observation Carried Forward
replace_na_spline()
Replace Missing Values Using Spline Interpolation
replace_na_stine()
Replace Missing Values Using Stineman Interpolation
replace_na_value()
Replace Missing Values with a Constant Value

Smooth and filter signals

Suppress noise while preserving the movement you care about.

filter_ccma() experimental
Apply Curvature-Corrected Moving Average (CCMA)
filter_gaussian()
Apply Gaussian Kernel Smoother
filter_highpass()
Apply Butterworth Highpass Filter to Signal
filter_highpass_fft()
Apply FFT-based Highpass Filter to Signal
filter_kalman()
Kalman Filter for Regular Time Series
filter_kalman_irregular()
Kalman Filter for Irregular Time Series with Optional Resampling
filter_lowpass()
Apply Butterworth Lowpass Filter to Signal
filter_lowpass_fft()
Apply FFT-based Lowpass Filter to Signal
filter_one_euro()
Apply the One Euro filter
filter_rollmean()
Apply Rolling Mean Filter
filter_rollmedian()
Apply Rolling Median Filter
filter_sgolay()
Apply Savitzky-Golay Filter to Movement Data
filter_triangular()
Apply Triangular Filter

Find peaks and troughs

Locate local extrema by height, prominence and plateau handling.

find_peaks()
Find Peaks in Time Series Data
find_troughs()
Find Troughs in Time Series Data