Learn R Programming

emuR (version 2.4.0)

buildtrack: Build trackdata objects from the output of by()

Description

buildtrack() converts a list that is the output of by.trackdata() into a trackdata object if the list components are matrices whose rows are successive values in time.

Usage

buildtrack(mylist, ftime = NULL, trackname = "")

Arguments

mylist

a list that ist output from by()

ftime

ftime

trackname

name of track data object

Author

Jonathan Harrington

Details

The default of by.trackdata() is to return a list. If each element of the list consists of a matrix whose rows are values occurring at the times given by the row dimension names of the matrix, then buildtrack() can be used to convert the list into a trackdata object. If the times are not given in the row dimension names, then these can be supplied as an additional argument to buildtrack()

See Also

Examples

Run this code

   #vowlax.fdat is a track data objects of formant of the vowlax segment list
   #calculate the difference between adjacent formant values
   p = by(vowlax.fdat[1,2],INDICES=NULL, diff)
   
   p
   
   
   #now build a track data object out of these values
   m = buildtrack(p)
   
   m

Run the code above in your browser using DataLab