I am looking to find the summary statistics (mean and potentially standard deviation and other quantities) of a vector (column) in a data frame, but grouped. I hope to group the statistics by another categorical variable
I know that one find summary as
summary(data$rating)
however I am not sure how I find summary statistics for gender separately.
I tried
summary(data$rating, data$gender)
but that does give my anything but summary(data$rating)