Skip to contents

Converts a result containing a spectrum into a long data.frame with columns freq and power. Supports outputs from oscillation_score (fields freqs/flimfft) and spectral_peak (fields fxx/spectrum).

Usage

oscore_spectrum(x)

Arguments

x

a spectrum-containing result list (or list of such results).

Value

data.frame with columns freq, power, and optionally id.

Details

If a list of results is provided, an id column is added.