read.trackdata {emu}R Documentation

Load track data from file

Description

read data from a file into a trackdata object, the files contain the data and time components of the object, they're produced by gettrack (within the EMU System) and write.trackdata.

Usage

   read.trackdata(filename, trackname = "data")

Arguments

filename file name
trackname track name of the a track that is written in FILE. without trackname, track is defined as data in the returned track data object

Value

track data object

Author(s)

Jonathan Harrington

See Also

write.trackdata

Examples

   data(dip)
   #Formant track data of the segment list dip (see data(dip)) - first segment only
   dip.fdat[1]
   ## Not run: write.trackdata(dip.fdat, "emu.write.track.example.txt")

   #There is a file emu_write.track.example.txt written to R_HOME/
   #that includes the track data
   
   #Now load the track data into R
   ## Not run: dip.fdat.rl = read.trackdata("emu.write.track.example.txt", "fm")
   ## Not run: dip.fdat.rl[1] 
   
   #Now load the track data into R without argument trackname
   ## Not run: dip.fdat.rl = read.trackdata("emu.write.track.example.txt")
   ## Not run: dip.fdat.rl[1] 
   ## Not run: unlink("emu.write.track.example.txt")

[Package emu version 4.0 Index]