Transforms a time series object to a frequency series by computing FFT.
Usage
to_fs(ts, delta_f = NULL)
Arguments
- ts
A `ts` object.
- delta_f
Optional. A numeric value indicating desired frequency resolution.
If NULL, defaults to `sampling.freq / length(ts)`.
Value
An `fs` object containing frequency-domain representation and metadata.