Add a track to an AsspDataObj
addTrack(dobj, trackname, data, format = "INT16", deleteExisting = FALSE)
the object including the new track
The data object to which the data is to be added
The name of the new track
a matrix with values
format for binary writing to file (defaults to 'INT16')
Delete existing track with the same (default: FALSE)
Lasse Bombien
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.
delTrack