Learn R Programming

emuR (version 2.5.0)

dim.trackdata: A method of the generic function dim for objects of class 'trackdata'

Description

The function returns the dimension attributes of a track data object.

Usage

# S3 method for trackdata
dim(x)

Arguments

x

a track data object

Author

Jonathan Harrington

Details

The function returns the dimension attributes of a track data object as the number of segments x number of tracks. c(nrow(x$index), ncol(x$data))

Examples

Run this code

   #isol.fdat is the formant track of the segment list isol

   #write out the dimension of the track data object 
   dim(isol.fdat)

   #because there are 13 segments
   isol.fdat$ftime

   #and there are 4 rows for each segment (see here for the first segment)
   isol.fdat$data[1,]

Run the code above in your browser using DataLab