percentage_v | R Documentation |
This function loads a dataframe as input and returns a dataframe containing the mean values and mean standard deviations of %V.
percentage_v(df, v_label, utterance_id, cv_duration, utterance_duration)
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. |
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 |
%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
percent_v: a data frame containing the mean values and standard deviation of %
Cong Zhang, cong.zhang@ru.nl
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.