modify.seglist {emuR}R Documentation

Modify one of the components of an Emu segment list

Description

This function can be used to modify one of the parts of an Emu segment list while leaving the other parts unchanged.

Usage

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)
)

Arguments

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

Details

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.

Value

An Emu segment list.

Author(s)

Steve Cassidy

See Also

query

Examples


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" )



[Package emuR version 2.5.0 Index]