namePauses {vocaldia} | R Documentation |
namePauses: name pause types.
Description
Replace identified pause pause types in data frame.
Usage
namePauses(df, nodecolumn = "role")
Arguments
df |
a data frame consisting, minimally, of a column for vocalisation/pause start times, a column for end times, and a column identifying the speaker, speaker role or 'Floor' (for silences). |
nodecolumn |
the name of the column containing the node (speaker) name (e.g. 'speaker', 'role'). |
Details
replace all 'Floor' speakers in df by 'Pause', 'SwitchingPause' etc, and return a new data fame containing pause types in place of 'Floor' (see markov.R, identifyPauses() for a better implementation)
Value
a data.frame with pauses in nodecolumn replaced by different pause types.
See Also
identifyPauses
for a better implementation
Examples
data(vocdia)
x <- subset(atddia, id=='Abbott_Maddock_01')
x[1:15,1:6]
namePauses(x)[1:15,1:6]
[Package vocaldia version 0.8.4 Index]