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