Supose I have a data frame with 3 columns (name, y, sex) where name is character, y is a numeric value and <
name
y
sex
I think there must be some function like it to apply on data frames and get data frames as return
Yes there is:
library(plyr) ddply(score, c('y', 'sex'))