The dummy dataframe is from some Linguistics data.
Looking to make four new columns based on Column type
for ‘C1′, V1’, ‘C2’, ‘V2’, ‘B’, and ‘E’ from the numeric values in column duration
.
file sentence iSentence wordType FCPhrase V1Vowel sampleQuality phoneme type duration
1 PS_G.TextGrid kalla 2 G F S B B B 0.18929576
2 PS_G.TextGrid kalla 2 G F S B k C1 0.09941696
3 PS_G.TextGrid kalla 2 G F S B ə V1 0.05025876
4 PS_G.TextGrid kalla 2 G F S B ll C2 0.12619718
5 PS_G.TextGrid kalla 2 G F S B a: V2 0.13646904
6 PS_G.TextGrid kalla 2 G F S B E E 0.53416178
Any help shall be appreciated. If it is a duplicate question, kindly provide the link. Thanks.