Learn R Programming

wrassp (version 0.1.2)

addTrack: Add a track to an AsspDataObj

Description

Add a track to an AsspDataObj

Usage

addTrack(dobj, trackname, data, format = "INT16", deleteExisting = FALSE)

Arguments

dobj
The data object to which the data is to be added
trackname
The name of the new track
data
a matrix with values
format
format for binary writing to file (defaults to 'INT16')
deleteExisting
Delete existing track with the same (default: FALSE)

Value

  • the object including the new track

Details

The specified data object is extended by a new track named trackname. If there already is a track with the same name and deleteExisiting is FALSE the function does nothing but returns with an error. If deleteExisting is TRUE the existing track will be removed (see delTrack. data to be added is a numeric matrix (or will be coerced to one). It must have the same number of rows as the tracks that already exist in the object (if any). TODO add format information.

See Also

delTrack