getTurnType: getTurnType: return type of turn

Description Usage Arguments Details Value Examples

View source: R/vocalgraphs.R

Description

Identify turn types

Usage

1
2
3
4
5
6
7
getTurnType(
  df,
  i,
  individual = FALSE,
  nodecolumn = "speaker",
  noPauseTypes = F
)

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).

i

the identifier (index number) whose type will be returned

individual

if TRUE, return the identifier, a Pause or Grp

nodecolumn

the name of the column containing the node (speaker) name (e.g. 'speaker', 'role').

noPauseTypes

if TRUE, ignore distinctions between pauses (SwitchingPause, GrpSwitchingPause, etc)

Details

Return one of Vocalisation, GrpVocalisation, ... or identifier.

Value

a string containing the turn type or identifier.

Examples

1
2
3
4
data(vocdia)
atddia[1:10,]
getTurnType(atddia, 3, nodecolumn='role') ## a vocalisation
getTurnType(atddia, 4, nodecolumn='role') ## a pause

vocaldia documentation built on July 2, 2020, 2 a.m.