I am a novice R user would like to apply a function to each level of a factor (names).
names
My data set (data) has three vectors: names
data