identifyVocalisations: identifyVocalisations: replace appropriate vocalisation types

View source: R/markov.R

identifyVocalisationsR Documentation

identifyVocalisations: replace appropriate vocalisation types

Description

Identify switching vocalisations

Usage

identifyVocalisations(vocvector, idswitchvoc = T)

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

Value

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

Examples

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

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