pivot tables in R code example Example: pivot table in r dplyr ## make a table with our new variable siteyear_summary %>% kable()