getPauseType: getPauseType: name pause type between two vocalisation...

View source: R/vocalgraphs.R

getPauseTypeR Documentation

getPauseType: name pause type between two vocalisation events.

Description

Identify the type of pause between vocalisations.

Usage

getPauseType(prevspeaker, nextspeaker)

Arguments

prevspeaker

speaker of the vocalisation immediately before Floor

nextspeaker

speaker of the vocalisation immediately after Floor

Details

The type of pause a 'Floor' (silence) event represents can be: 'Pause', 'SwitchingPause', 'GrpPause', or 'GrpSwitchingPause'. See (Luz, 2013) for details.

Value

the pause type.

See Also

namePauses

Examples

getPauseType('a', 'b')
 ## [1]  "SwitchingPause"
getPauseType('a', 'Grp')
 ## [1]  "SwitchingPause"
getPauseType('Grp', 'Grp')
 ## [1]  "GrpPause"
getPauseType('Grp', 'a')
 ## [1]  "GrpSwitchingPause"
getPauseType('a', 'a')
 ##[1] "Pause"

vocaldia documentation built on Aug. 15, 2022, 1:05 a.m.