resolve_sample_rate: Resolve the sampling rate for a generic load

View source: R/pipeline-loadgeneric.R

resolve_sample_rateR Documentation

Resolve the sampling rate for a generic load

Description

Returns the user-supplied sampling rate, or infers it from the median spacing of the timestamps when not provided.

Usage

resolve_sample_rate(sample_rate, time_ms, verbose)

Arguments

sample_rate

User-supplied sampling rate in Hz, or NULL.

time_ms

Numeric vector of timestamps in milliseconds.

verbose

Logical. Whether to print verbose output.

Value

A positive numeric sampling rate in Hz.


eyeris documentation built on Aug. 1, 2026, 1:07 a.m.