I have a dataframe (dogri_before_short) in which I am interested in extracting means from numerical columns C1.dn, C2.dn, V1.dn, and V2.dn based on factor columns Consonant,