# NOT RUN {
# To convert data frame to tidy data (long) format, run:
library(dplyr)
library(tidyr)
police_locals_tidy <- police_locals %>%
pivot_longer(all:asian, names_to = "race", values_to = "perc_in")
# }
Run the code above in your browser using DataLab