What does tapply(FB.df$likes, FB.df$gender, mean) do, if FB.df is a Data Frame containing Facebook data with gender and likes?
Answer
Returns the mean like count for each gender.
Explanation:
tapply() applies the function mean to the objects in FB.df$likes treating the second parameter FB.df$gender, mean) as factors to group by.