R data wrangling
This code snippet has nice examples of data wrangling From https://www.jumpingrivers.com/blog/r-d3-intro-r2d3/ scoobydoo = tuesdata$scoobydoo # wrangling data into nice shape monsters_caught = scoobydoo %>% select(date_aired, starts_with("caught")) %>% mutate(across(starts_with("caught"), ~ as.logical(.)))…