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