diff --git a/R/check_repository.R b/R/check_repository.R new file mode 100644 index 0000000..7016022 --- /dev/null +++ b/R/check_repository.R @@ -0,0 +1,35 @@ +#' Title +#' +#' @param year +#' @param topic +#' @param geolvl +#' +#' @return +#' @export +#' +#' @examples +check_repository <- function( year = 1970, topic = NULL, geolvl = NULL){ + + if(year != 1970) stop(paste0("El año ", year, " todavia no fue cargado en AR_CENSO o no es un año censal")) + + load("data/info_cuadros_arcenso.rda") + repo <- list.files("data/", full.names = T) + + selec <- info_cuadros_arcenso[info_cuadros_arcenso$anio %in% year & info_cuadros_arcenso$PKG %in% "SI", ] + + if(!is.null(topic)){ + + if(!topic %in% unique(selec$tema)) stop(c("Temática elegida inválida \nLas temáticas disponibles para el año seleccionado son: \n", paste(unique(selec$tema), "\n"))) + + selec <- selec[selec$tema %in% topic, ] + } + if(!is.null(geolvl)){ + selec <- selec[grepl(geolvl, selec$Jurisdiccion), ] + } + + + lista_cuadros <- info_cuadros_arcenso[info_cuadros_arcenso$Archivo %in% selec$Archivo, c("Archivo", "Titulo")] + + return(lista_cuadros) + +} diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c1.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c1.RDS" new file mode 100644 index 0000000..cf9324f Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c1.RDS" differ diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c10.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c10.RDS" new file mode 100644 index 0000000..c95f9a0 Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c10.RDS" differ diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c11.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c11.RDS" new file mode 100644 index 0000000..676cb6e Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c11.RDS" differ diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c2.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c2.RDS" new file mode 100644 index 0000000..73b8559 Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c2.RDS" differ diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c3.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c3.RDS" new file mode 100644 index 0000000..38655fe Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c3.RDS" differ diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c4.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c4.RDS" new file mode 100644 index 0000000..d4925ae Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c4.RDS" differ diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c5.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c5.RDS" new file mode 100644 index 0000000..0796ff7 Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c5.RDS" differ diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c7.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c7.RDS" new file mode 100644 index 0000000..7828800 Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c7.RDS" differ diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c8.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c8.RDS" new file mode 100644 index 0000000..2607a9f Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c8.RDS" differ diff --git "a/data/1980/c80_totaldelpa\303\255s_vivienda_c9.RDS" "b/data/1980/c80_totaldelpa\303\255s_vivienda_c9.RDS" new file mode 100644 index 0000000..e1e6722 Binary files /dev/null and "b/data/1980/c80_totaldelpa\303\255s_vivienda_c9.RDS" differ diff --git a/data/1980/c80b_buenosaires_a1.RDS b/data/1980/c80b_buenosaires_a1.RDS new file mode 100644 index 0000000..41ed20f Binary files /dev/null and b/data/1980/c80b_buenosaires_a1.RDS differ diff --git a/data/1980/c80b_capitalfederal_a1.RDS b/data/1980/c80b_capitalfederal_a1.RDS new file mode 100644 index 0000000..429a945 Binary files /dev/null and b/data/1980/c80b_capitalfederal_a1.RDS differ diff --git a/data/1980/c80b_catamarca_a1.RDS b/data/1980/c80b_catamarca_a1.RDS new file mode 100644 index 0000000..50d412d Binary files /dev/null and b/data/1980/c80b_catamarca_a1.RDS differ diff --git a/data/1980/c80b_chaco_a1.RDS b/data/1980/c80b_chaco_a1.RDS new file mode 100644 index 0000000..8623fb6 Binary files /dev/null and b/data/1980/c80b_chaco_a1.RDS differ diff --git a/data/1980/c80b_chubut_a1.RDS b/data/1980/c80b_chubut_a1.RDS new file mode 100644 index 0000000..4992628 Binary files /dev/null and b/data/1980/c80b_chubut_a1.RDS differ diff --git a/data/1980/c80b_cordoba_a1.RDS b/data/1980/c80b_cordoba_a1.RDS new file mode 100644 index 0000000..f37997d Binary files /dev/null and b/data/1980/c80b_cordoba_a1.RDS differ diff --git a/data/1980/c80b_corrientes_a1.RDS b/data/1980/c80b_corrientes_a1.RDS new file mode 100644 index 0000000..28d36af Binary files /dev/null and b/data/1980/c80b_corrientes_a1.RDS differ diff --git a/data/1980/c80b_entrerios_a1.RDS b/data/1980/c80b_entrerios_a1.RDS new file mode 100644 index 0000000..00395ca Binary files /dev/null and b/data/1980/c80b_entrerios_a1.RDS differ diff --git a/data/1980/c80b_formosa_a1.RDS b/data/1980/c80b_formosa_a1.RDS new file mode 100644 index 0000000..6baeb4d Binary files /dev/null and b/data/1980/c80b_formosa_a1.RDS differ diff --git a/data/1980/c80b_jujuy_a1.RDS b/data/1980/c80b_jujuy_a1.RDS new file mode 100644 index 0000000..65934b7 Binary files /dev/null and b/data/1980/c80b_jujuy_a1.RDS differ diff --git a/data/1980/c80b_lapampa_a1.RDS b/data/1980/c80b_lapampa_a1.RDS new file mode 100644 index 0000000..8288393 Binary files /dev/null and b/data/1980/c80b_lapampa_a1.RDS differ diff --git a/data/1980/c80b_larioja_a1.RDS b/data/1980/c80b_larioja_a1.RDS new file mode 100644 index 0000000..0334c7d Binary files /dev/null and b/data/1980/c80b_larioja_a1.RDS differ diff --git a/data/1980/c80b_mendoza_a1.RDS b/data/1980/c80b_mendoza_a1.RDS new file mode 100644 index 0000000..df398d4 Binary files /dev/null and b/data/1980/c80b_mendoza_a1.RDS differ diff --git a/data/1980/c80b_misiones_a1.RDS b/data/1980/c80b_misiones_a1.RDS new file mode 100644 index 0000000..9457d59 Binary files /dev/null and b/data/1980/c80b_misiones_a1.RDS differ diff --git a/data/1980/c80b_neuquen_a1.RDS b/data/1980/c80b_neuquen_a1.RDS new file mode 100644 index 0000000..51e3329 Binary files /dev/null and b/data/1980/c80b_neuquen_a1.RDS differ diff --git a/data/1980/c80b_rionegro_a1.RDS b/data/1980/c80b_rionegro_a1.RDS new file mode 100644 index 0000000..8a65792 Binary files /dev/null and b/data/1980/c80b_rionegro_a1.RDS differ diff --git a/data/1980/c80b_salta_a1.RDS b/data/1980/c80b_salta_a1.RDS new file mode 100644 index 0000000..40cf104 Binary files /dev/null and b/data/1980/c80b_salta_a1.RDS differ diff --git a/data/1980/c80b_sanjuan_a1.RDS b/data/1980/c80b_sanjuan_a1.RDS new file mode 100644 index 0000000..53fdefd Binary files /dev/null and b/data/1980/c80b_sanjuan_a1.RDS differ diff --git a/data/1980/c80b_sanluis_a1.RDS b/data/1980/c80b_sanluis_a1.RDS new file mode 100644 index 0000000..fd9861d Binary files /dev/null and b/data/1980/c80b_sanluis_a1.RDS differ diff --git a/data/1980/c80b_santacruz_a1.RDS b/data/1980/c80b_santacruz_a1.RDS new file mode 100644 index 0000000..d82fc84 Binary files /dev/null and b/data/1980/c80b_santacruz_a1.RDS differ diff --git a/data/1980/c80b_santafe_a1.RDS b/data/1980/c80b_santafe_a1.RDS new file mode 100644 index 0000000..7ee6d41 Binary files /dev/null and b/data/1980/c80b_santafe_a1.RDS differ diff --git a/data/1980/c80b_santiagodelestero_a1.RDS b/data/1980/c80b_santiagodelestero_a1.RDS new file mode 100644 index 0000000..f28f6da Binary files /dev/null and b/data/1980/c80b_santiagodelestero_a1.RDS differ diff --git a/data/1980/c80b_tierradelfuego_a1.RDS b/data/1980/c80b_tierradelfuego_a1.RDS new file mode 100644 index 0000000..fa2cc5a Binary files /dev/null and b/data/1980/c80b_tierradelfuego_a1.RDS differ diff --git a/data/1980/c80b_totalpais_a1.RDS b/data/1980/c80b_totalpais_a1.RDS new file mode 100644 index 0000000..defa45d Binary files /dev/null and b/data/1980/c80b_totalpais_a1.RDS differ diff --git a/data/1980/c80b_totalpais_a10.RDS b/data/1980/c80b_totalpais_a10.RDS new file mode 100644 index 0000000..f3c2e3e Binary files /dev/null and b/data/1980/c80b_totalpais_a10.RDS differ diff --git a/data/1980/c80b_totalpais_a11.RDS b/data/1980/c80b_totalpais_a11.RDS new file mode 100644 index 0000000..9bcc6db Binary files /dev/null and b/data/1980/c80b_totalpais_a11.RDS differ diff --git a/data/1980/c80b_totalpais_a12.RDS b/data/1980/c80b_totalpais_a12.RDS new file mode 100644 index 0000000..ebfac37 Binary files /dev/null and b/data/1980/c80b_totalpais_a12.RDS differ diff --git a/data/1980/c80b_totalpais_a13.RDS b/data/1980/c80b_totalpais_a13.RDS new file mode 100644 index 0000000..616ac55 Binary files /dev/null and b/data/1980/c80b_totalpais_a13.RDS differ diff --git a/data/1980/c80b_totalpais_a14.RDS b/data/1980/c80b_totalpais_a14.RDS new file mode 100644 index 0000000..a96c7f5 Binary files /dev/null and b/data/1980/c80b_totalpais_a14.RDS differ diff --git a/data/1980/c80b_totalpais_a15.RDS b/data/1980/c80b_totalpais_a15.RDS new file mode 100644 index 0000000..36056f9 Binary files /dev/null and b/data/1980/c80b_totalpais_a15.RDS differ diff --git a/data/1980/c80b_totalpais_a2.RDS b/data/1980/c80b_totalpais_a2.RDS new file mode 100644 index 0000000..23eff9e Binary files /dev/null and b/data/1980/c80b_totalpais_a2.RDS differ diff --git a/data/1980/c80b_totalpais_a3.RDS b/data/1980/c80b_totalpais_a3.RDS new file mode 100644 index 0000000..8c68212 Binary files /dev/null and b/data/1980/c80b_totalpais_a3.RDS differ diff --git a/data/1980/c80b_totalpais_a4.RDS b/data/1980/c80b_totalpais_a4.RDS new file mode 100644 index 0000000..b1ea867 Binary files /dev/null and b/data/1980/c80b_totalpais_a4.RDS differ diff --git a/data/1980/c80b_totalpais_a5.RDS b/data/1980/c80b_totalpais_a5.RDS new file mode 100644 index 0000000..8139639 Binary files /dev/null and b/data/1980/c80b_totalpais_a5.RDS differ diff --git a/data/1980/c80b_totalpais_a6.RDS b/data/1980/c80b_totalpais_a6.RDS new file mode 100644 index 0000000..2f5e6b0 Binary files /dev/null and b/data/1980/c80b_totalpais_a6.RDS differ diff --git a/data/1980/c80b_totalpais_a7.RDS b/data/1980/c80b_totalpais_a7.RDS new file mode 100644 index 0000000..273c3af Binary files /dev/null and b/data/1980/c80b_totalpais_a7.RDS differ diff --git a/data/1980/c80b_totalpais_a8.RDS b/data/1980/c80b_totalpais_a8.RDS new file mode 100644 index 0000000..0339ae3 Binary files /dev/null and b/data/1980/c80b_totalpais_a8.RDS differ diff --git a/data/1980/c80b_totalpais_a9.RDS b/data/1980/c80b_totalpais_a9.RDS new file mode 100644 index 0000000..12323e1 Binary files /dev/null and b/data/1980/c80b_totalpais_a9.RDS differ diff --git a/data/1980/c80b_totalpais_e1.RDS b/data/1980/c80b_totalpais_e1.RDS new file mode 100644 index 0000000..05abb01 Binary files /dev/null and b/data/1980/c80b_totalpais_e1.RDS differ diff --git a/data/1980/c80b_tucuman_a1.RDS b/data/1980/c80b_tucuman_a1.RDS new file mode 100644 index 0000000..824be74 Binary files /dev/null and b/data/1980/c80b_tucuman_a1.RDS differ