Workshop: Week 4
Work on Task A as a group, guided by the group navigator, then work on one of the other two tasks. Feel free to work on the remaining task as well if you have time.
Each of you should complete the exercises on your laptop, using the RStudio project you created for the course. This includes writing text and code in a Quarto document and executing the code. You should use Quarto documents (rather than scripts) from now on (in the workshops and at home).
Read the
coretta2021/alb-vot.csvdata in R.Calculate the VOT based on the
releaseandvoi_onsetcolumns. (VOT is the time lag between the voicing onset and the consonant release).Create a new column that specifies the voicing of the consonant (voiced or voiceless) based on the value in
label.ifelse()orcase_when()are useful.Get summary measures of VOT for voiceless and voiced consonants. Can the VOT differentiate between the two voicing categories?
Read the
coretta2021/alb_formants.rdsdata in R.Create a scatter plot of F1 and F2, with points coloured by
vowel. Are the vowels in the places you’d expect them to be?Now create another scatter plot with F1 and vowel duration. You need to calculate vowel duration first from
startandend. Can you notice any patterns in the relationship between F1 and vowel duration?
Read the
sluckin2022/everywhere-loc.csvdata in R. The data are acceptability judgements on the impersonal use of “everywhere”, like in the sentence “Everywhere here can say this”.The
Restrictorcolumn tells you if the sentence has a restrictor, like in “Everywhere on the coast eats fish and chips.” vs no restrictor “Everywhere takes credit cards these days.” TheValuecolumn gives you the acceptability rating from 1 to 7.Mutate the
Restrictorcolumn so that 0 = “no restrictor” and 1 = “restrictor”.Mutate the
Valuecolumn so that it is a character column (useas.character()).Create a filled stacked bar chart by
Restrictorwith fill byValueand panels byAge. Can you spot differences in rating across different age brackets?