Skip to content

Instantly share code, notes, and snippets.

View mvpsaraiva's full-sized avatar

Marcus Saraiva mvpsaraiva

View GitHub Profile
@mvpsaraiva
mvpsaraiva / Isochrones_and_Topography.R
Last active April 29, 2021 21:16
Demonstrating how to use the new `isochrones` function and the effects of topography on routing in r5r 0.5.0
#' Testing r5r 0.5-0 new features:
#' - Isochrone
#' - Topography
#' To test this, you need to install r5r from the dev branch:
# utils::remove.packages('r5r')
# devtools::install_github("ipeaGIT/r5r", subdir = "r-package", ref = "dev")
# allocate RAM memory to Java
@mvpsaraiva
mvpsaraiva / munis_df.R
Last active April 2, 2021 18:51
Proposta de nova estrutura para munis_df
munis_df <- tribble(
~code_muni, ~abrev_muni, ~name_muni, ~abrev_estado,
2304400, "for", "Fortaleza", "CE",
3550308, "spo", "Sao Paulo", "SP",
3304557, "rio", "Rio de Janeiro", "RJ",
4106902, "cur", "Curitiba", "PR",
4314902, "poa", "Porto Alegre", "RS",
3106200, "bho", "Belo Horizonte", "MG",
5300108, "bsb", "Brasilia", "DF",
2927408, "sal", "Salvador", "BA",