Skip to contents

Work on a whole aniframe

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

filter_across()
Apply a filter across an aniframe's spatial columns
mask_na_across()
Mask values to NA across an aniframe's spatial columns
replace_na_across()
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
mask_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.

mask_na_confidence()
Mask low-confidence values to NA
mask_na_excursion()
Mask position excursions that return
mask_na_hampel() experimental
Mask spikes against a rolling median
mask_na_range()
Mask values outside a range to NA
mask_na_roi()
Mask coordinates outside a region of interest (ROI)
mask_na_segment_length() experimental
Mask points whose segments are far off their usual length
mask_na_speed()
Mask values that move faster than a 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_deadband() experimental
Apply a deadband filter
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