babble_ratio: canonical babbling ratio

Description Usage Arguments Details Value

View source: R/babble_ratio.R

Description

proportion of canonical utterances (out of the sum of canonical and non-canonical)

Usage

1
babble_ratio(xfile)

Arguments

xfile

character, file path to rttm generated by divime_classify_vox

Details

if the rttm is empty (i.e. contains no child vocalizations at all), the returned list will contain only NAs. If there were some child vocalizations but none of them were CNS or NCS, the counts in the output will be 0 and only the ratio is returned as NA.

Value

a list with three items (cns: number of canonical utterances, ncs: number of non-canonical utterances, babble_ratio: the ratio)


gobbios/avutils documentation built on Feb. 19, 2020, 9:44 a.m.