Learn R Programming

vocaldia (version 0.8.4)

namePauses: namePauses: name pause types.

Description

Replace identified pause pause types in data frame.

Usage

namePauses(df, nodecolumn = "role")

Value

a data.frame with pauses in nodecolumn replaced by different pause types.

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)

See Also

identifyPauses for a better implementation

Examples

Run this code
data(vocdia)
x <- subset(atddia, id=='Abbott_Maddock_01')
x[1:15,1:6]
namePauses(x)[1:15,1:6]

Run the code above in your browser using DataLab