I am trying to view the mean values of height, grouped by eye color of the characters, that have a number in their name. I tried it with aggregate but I can't figure out the solution
sw %>%
filter(grepl('[0-9]',name))%>%
aggregate(height~eye_color,mean)%>%
setNames(c("Eye color","Mean"))