Learn R Programming

emuR (version 2.4.0)

convert_wideToLong: convert tracks of a tibble trackdata object to the long form

Description

Converts a trackdata tibble object of the form (==wide):

sl_rowIdx...T1T2T3...TN
1...T1_valueT2_valueT3_value...TN_value

to its long form equivalent:

sl_rowIdx...track_nametrack_value
1...T1T1_value
1...T2T2_value
1...T3T3_value
............
1...TNTN_value

Usage

convert_wideToLong(td, calcFreqs = FALSE)

Value

long form trackdata tibble object

Arguments

td

wide form trackdata tibble object

calcFreqs

calculate an additional column containing frequency values from 0-nyquist frequency that match T1-TN (can be quite useful for spectral data)