percentage_v: Percentage V

View source: R/percentage_v.R

percentage_vR Documentation

Percentage V

Description

This function loads a dataframe as input and returns a dataframe containing the mean values and mean standard deviations of %V.

Usage

percentage_v(df, v_label, utterance_id, cv_duration, utterance_duration)

Arguments

df:

a data frame containing cv_labels, utterance_id, cv_duration, and utterance_duration values.

v_label:

a string to filter the vowels, e.g. v_label = 'V' or v_label = 'vowel'

utterance_id:

each unique utterance should have a unique id

cv_duration:

the duration of C or V (only the values for vowels will be used)

utterance_duration:

the duration of entire utterances

Details

%V is a rhythm metrics based on Ramus, F., Nespor, M., & Mehler, J. (1999). Correlates of linguistic rhythm in the speech signal. Cognition, 73(3), 265-292. It calculates the ratio of vocalic material to the total duration of an utterance.

⁠% V: total V duration / total utterance duration⁠

Value

percent_v: a data frame containing the mean values and standard deviation of %

Author(s)

Cong Zhang, cong.zhang@ru.nl

Examples

df <- data.frame (cv_label  = c("consonant", "vowel", "consonant", "vowel",
                                "consonant", "vowel", "consonant", "vowel"),
                  utterance_id = c("utt_1", "utt_1", "utt_2", "utt_2",
                                   "utt_1", "utt_1", "utt_2", "utt_2"),
                  cv_duration = c(0.1, 0.8, 0.2, 0.5, 0.3, 0.3, 0.4, 0.7),
                  utterance_duration = c(2.4, 2.4, 2.7, 2.7, 2.4, 2.4, 2.7, 2.7))

percentage_v(df, v_label="vowel", utterance_id, cv_duration, utterance_duration)


congzhang365/rhythm.metrics documentation built on March 31, 2024, 5:57 p.m.