get_freq: Calculate Sampling Frequency

Description Usage Arguments Value

View source: R/get_freq.R

Description

If you are unsure about the sampling frequency of your time series, get_freq can verify this, provided your data contains a time stamp for each measurement.

Usage

1
get_freq(time, units = "ms")

Arguments

time

Numeric vector of time stamps.

units

String indicating units of time (either "ms" or "s"). The default is "ms".

Value

Sampling frequency in Hz.


jashu/itrak documentation built on May 9, 2020, 1:57 p.m.