Skip to content

Instantly share code, notes, and snippets.

@mribeirodantas
Created April 5, 2020 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mribeirodantas/9c6f60f581242b6716c2b93525534db0 to your computer and use it in GitHub Desktop.
Save mribeirodantas/9c6f60f581242b6716c2b93525534db0 to your computer and use it in GitHub Desktop.
df <- merge(x = casos_obitos, y = mobility, by.x = c('estado'), by.y = c('region'))
df <- merge(x = df, y = ibge, by.x = c('estado'))
rm(casos_obitos, mobility, ibge)
# Setting the correct column types
df[, c(2,3,5:12)] <- sapply(df[, c(2,3,5:12)], as.numeric)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment