From 32ddf830972828cc8c336b57312343f076ac2fe0 Mon Sep 17 00:00:00 2001 From: richdeto Date: Mon, 21 Mar 2022 13:23:52 -0300 Subject: [PATCH] Volver a CRAN --- DESCRIPTION | 2 +- NAMESPACE | 1 + NEWS.md | 3 + R/organize.R | 7 +- README.md | 6 +- docs/404.html | 113 +- docs/LICENSE.html | 271 +- docs/articles/Educacion.html | 76 +- docs/articles/ech.html | 213 +- docs/articles/estimacion_ingresos.html | 79 +- docs/articles/index.html | 116 +- docs/articles/medicion_pobreza.html | 134 +- docs/authors.html | 157 +- docs/index.html | 250 +- docs/news/index.html | 112 +- docs/pkgdown.css | 208 +- docs/pkgdown.js | 9 +- docs/pkgdown.yml | 5 +- docs/reference/Rplot001.png | Bin 0 -> 1011 bytes docs/reference/add_geom.html | 122 +- docs/reference/age_groups.html | 166 +- docs/reference/archiveExtractBinary.html | 126 +- docs/reference/archive_extract.html | 159 +- docs/reference/basket_goods.html | 176 +- docs/reference/branch_ciiu.html | 201 +- docs/reference/cba_cbna_int.html | 183 +- docs/reference/cba_cbna_mdeo.html | 183 +- docs/reference/cba_cbna_rur.html | 183 +- docs/reference/ciiu4.html | 181 +- docs/reference/dates_ech.html | 148 +- docs/reference/deflate.html | 197 +- docs/reference/dic.html | 247 +- docs/reference/ech.html | 120 +- docs/reference/employment.html | 177 +- docs/reference/employment_restrictions.html | 191 +- docs/reference/enrolled_school.html | 247 +- docs/reference/get_cba_cbna.html | 181 +- docs/reference/get_dictionary.html | 171 +- docs/reference/get_estimation_gini.html | 269 +- docs/reference/get_estimation_gpg.html | 239 +- docs/reference/get_estimation_mean.html | 292 +- docs/reference/get_estimation_median.html | 306 +- docs/reference/get_estimation_qsr.html | 231 +- docs/reference/get_estimation_ratio.html | 288 +- docs/reference/get_estimation_total.html | 292 +- docs/reference/get_ipab.html | 174 +- docs/reference/get_ipab_region.html | 174 +- docs/reference/get_ipc.html | 164 +- docs/reference/get_ipc_region.html | 182 +- docs/reference/get_microdata.html | 177 +- docs/reference/household_type.html | 203 +- docs/reference/housing_conditions.html | 187 +- docs/reference/housing_deprivation.html | 335 +-- docs/reference/housing_situation.html | 269 +- docs/reference/housing_tenure.html | 175 +- docs/reference/income_constant_prices.html | 253 +- docs/reference/income_quantiles.html | 217 +- docs/reference/index.html | 842 +----- .../reference/integrated_poverty_measure.html | 207 +- docs/reference/ipab_base2010.html | 177 +- docs/reference/ipab_base2010_int.html | 177 +- docs/reference/ipab_base2010_mdeo.html | 177 +- docs/reference/ipc_base2010.html | 185 +- docs/reference/ipc_base2010_int.html | 177 +- docs/reference/ipc_base2010_mdeo.html | 177 +- docs/reference/isWindows.html | 118 +- docs/reference/labor_income_per_capita.html | 489 ++-- docs/reference/labor_income_per_hour.html | 241 +- docs/reference/level_completion.html | 311 +- docs/reference/level_education.html | 273 +- docs/reference/organize_ht11.html | 187 +- docs/reference/organize_names.html | 160 +- docs/reference/overcrowding.html | 181 +- docs/reference/pipe.html | 126 +- docs/reference/plot_geouy.html | 122 +- docs/reference/poverty.html | 219 +- docs/reference/read_microdata.html | 165 +- docs/reference/set_design.html | 471 ++-- docs/reference/to_ascii.html | 114 + docs/reference/toy_ech_2018.html | 2509 ++++++++++++----- docs/reference/toy_ech_2018_income.html | 209 +- docs/reference/underemployment.html | 227 +- docs/reference/unlabelled.html | 156 +- docs/reference/unrarPath.html | 122 +- docs/reference/unsatisfied_basic_needs.html | 379 +-- docs/reference/urls_ine.html | 183 +- docs/reference/years_of_schooling.html | 273 +- docs/sitemap.xml | 264 ++ 88 files changed, 7286 insertions(+), 11880 deletions(-) create mode 100644 docs/reference/Rplot001.png create mode 100644 docs/reference/to_ascii.html create mode 100644 docs/sitemap.xml diff --git a/DESCRIPTION b/DESCRIPTION index f217e3a..ae18dc6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ech Title: Toolbox for ECH with R -Version: 0.1.1.3 +Version: 0.1.2.0 Authors@R: c(person(given = "Gabriela", family = "Mathieu", diff --git a/NAMESPACE b/NAMESPACE index f9184d3..172003b 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -57,6 +57,7 @@ importFrom(dplyr,everything) importFrom(dplyr,filter) importFrom(dplyr,filter_all) importFrom(dplyr,group_by) +importFrom(dplyr,if_any) importFrom(dplyr,left_join) importFrom(dplyr,mutate) importFrom(dplyr,mutate_all) diff --git a/NEWS.md b/NEWS.md index d6c25f5..be54b00 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # log history of ech package development +## ech v0.1.2.0 +*minor changes. fix organize_names + ## ech v0.1.1.3 *minor changes. fix organize_names diff --git a/R/organize.R b/R/organize.R index 4e47b27..fc5d285 100644 --- a/R/organize.R +++ b/R/organize.R @@ -4,6 +4,7 @@ #' @param level (string) indicates whether the base to be labelled is of the type "household", "h", "individual", "i" or both, "hyp". Default "hyp" #' @param year numeric reference year of the data. Available from 2011 to 2019 #' @export +#' @importFrom dplyr if_any #' @details #' Disclaimer: This script is not an official INE product. #' Aviso: El script no es un producto oficial de INE. @@ -23,9 +24,9 @@ organize_names <- function(data, year, level = "hyp"){ nh <- n %>% dplyr::filter(!duplicated(var17)) %>% dplyr::select(paste0("var", c(substr(year,3,4), 17))) %>% - tidyr::drop_na() - #data <- data %>% dplyr::select(vars(nh[,1])) - #names(data) <- nh[,2] + dplyr::filter(if_any("", " ")) + data <- data %>% dplyr::select(nh[,1]) + names(data) <- nh[,2] } if(level %in% c("hogar","h")){ nh <- n %>% diff --git a/README.md b/README.md index 0517b5c..76d8574 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ [![CRAN/METACRAN Version](https://www.r-pkg.org/badges/version/ech)](https://CRAN.R-project.org/package=ech) [![CRAN/METACRAN Total -downloads](http://cranlogs.r-pkg.org/badges/grand-total/ech?color=blue)](https://CRAN.R-project.org/package=ech) +downloads](https://cranlogs.r-pkg.org/badges/grand-total/ech?color=blue)](https://CRAN.R-project.org/package=ech) [![CRAN/METACRAN downloads per -month](http://cranlogs.r-pkg.org/badges/ech?color=orange)](https://CRAN.R-project.org/package=ech) +month](https://cranlogs.r-pkg.org/badges/ech?color=orange)](https://CRAN.R-project.org/package=ech) [![R build status](https://github.com/calcita/ech//workflows/R-CMD-check/badge.svg)](https://github.com/calcita/ech//actions) [![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/calcita/ech?branch=master&svg=true)](https://ci.appveyor.com/project/calcita/ech) [![Codecov test -coverage](https://codecov.io/gh/calcita/ech/branch/master/graph/badge.svg)](https://codecov.io/gh/calcita/ech?branch=master) +coverage](https://codecov.io/gh/calcita/ech/branch/master/graph/badge.svg)](https://app.codecov.io/gh/calcita/ech?branch=master) [![DOI](https://zenodo.org/badge/224897952.svg)](https://zenodo.org/badge/latestdoi/224897952) diff --git a/docs/404.html b/docs/404.html index f5d587a..49c6019 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1,62 +1,27 @@ - - - - + + + + - Page not found (404) • ech - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - -
-
- + +
+ + + - - -
+
+ +
-
- +
+ + - - diff --git a/docs/LICENSE.html b/docs/LICENSE.html index 2536221..83b8175 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -1,62 +1,12 @@ - - - - - - - -GNU General Public License • ech - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -GNU General Public License • ech - - + + - - -
-
- -
- -
+