R, Excel, Function, Pivot Tables.
4452. ## 7 J 4976. 4574. 5104. 6295. 4918. To export the result you have to save the result it first. You need to assign it to a dataframe; call it table1. table1= diamonds %>% group_by(cut,color) %>% summarize(mean.value=mean(price)) %>% spread(cut,mean.value) To create more tables like the one