Learn R Programming

vocaldia (version 0.8.4)

identifyVocalisations: identifyVocalisations: replace appropriate vocalisation types

Description

Identify switching vocalisations

Usage

identifyVocalisations(vocvector, idswitchvoc = T)

Value

A vector with all events replaced by the appropriate type identifier.

Arguments

vocvector

a character vector containing a sequence of vocalisation events

idswitchvoc

if TRUE distinguise between SwitchingVocalisation and Vocalisation.

Details

SwitchingVocalisation is a vocalisation that signals a immediate speaker transition; that is, a transition from speaker to speaker (as opposed to speaker to Grp or speaker to Pause).

E.g (speakers A, B, C):


AAAAAAAABBBBBBBCCCCCBBBBBPauseBBBBSwitchingPauseAAAAAGrp
       ^      ^    ^    ^        ^                  ^
       |      |    |    |        |                  |
       |      |    |    ----------- Non-SwitchingVocalisation
       |      |    |
       ---------------------> SwitchingVocalisation

Examples

Run this code
data(vocdia)
identifyVocalisations(atddia$speaker[1:60])

Run the code above in your browser using DataLab