modify.seglist | R Documentation |
This function can be used to modify one of the parts of an Emu segment list while leaving the other parts unchanged.
modify.seglist(
segs,
labels = label.emusegs(segs),
start = start.emusegs(segs),
end = end.emusegs(segs),
utts = utt.emusegs(segs),
query = emusegs.query(segs),
type = emusegs.type(segs),
database = emusegs.database(segs)
)
segs |
A segment list to modify, a modified copy is returned |
labels |
A new label vector |
start |
A new start time vector |
end |
A new end time vector |
utts |
A new vector of utterance labels |
query |
A new query string to associate with the segment list |
type |
A new type string |
database |
A new database name |
An Emu segment list has a number of components and is stored as an R object
of class emusegs
. This function can be used to modify a segment
list while retaining all of the proper structures.
Any new vectors passed to the function must have the same length as the segment list itself for this call to succeed.
All arguments are optional and default to not modifying the segment list if not supplied.
The original segment list is not modified, instead, a modified copy is returned.
An Emu segment list.
Steve Cassidy
query
data(vowlax)
segs = vowlax
# extend the start times by 10ms
newsegs <- modify.seglist( segs, start=start(segs)+10 )
# change the associated database name
# this will affect where emu.track looks to find data
newsegs <- modify.seglist( segs, database="notdemo" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.