After sub-setting your dataset by date, imagine that the function you would like to apply to each subset is to find the mean of the column x. You could do it this way: (df is your dataframe)
library(plyr)
ddply(df, .(date), summarize, mean = mean(x))