GithubHelp home page GithubHelp logo

meps_r_pkg's People

Contributors

e-mitchell avatar jeff-m-sullivan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

meps_r_pkg's Issues

2002 FYC dat file parsing error

I'm not sure yet whether this is an error in the code or in the data:

> library(MEPS)
Loading required package: dplyr

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

Loading required package: foreign
Loading required package: stringr
Loading required package: tidyr
Loading required package: readr
Loading required package: httr
> df <- read_MEPS(file="h70")
trying URL 'https://meps.ahrq.gov/data_files/pufs/h70dat.zip'
Content type 'application/zip' length 12417957 bytes (11.8 MB)
==================================================
downloaded 11.8 MB

|==================================================================| 100% 167 MB
Warning: 14916 parsing failures.
row      col expected actual                                                                   file
  2 SFFLAG42 a number      . '/var/folders/n1/26g1s6r54zz_c5ms_wvtxxy4m48sw7/T//RtmpJIMNON/h70.dat'
  3 SFFLAG42 a number      . '/var/folders/n1/26g1s6r54zz_c5ms_wvtxxy4m48sw7/T//RtmpJIMNON/h70.dat'
  4 SFFLAG42 a number      . '/var/folders/n1/26g1s6r54zz_c5ms_wvtxxy4m48sw7/T//RtmpJIMNON/h70.dat'
  5 SFFLAG42 a number      . '/var/folders/n1/26g1s6r54zz_c5ms_wvtxxy4m48sw7/T//RtmpJIMNON/h70.dat'
  9 SFFLAG42 a number      . '/var/folders/n1/26g1s6r54zz_c5ms_wvtxxy4m48sw7/T//RtmpJIMNON/h70.dat'
... ........ ........ ...... ......................................................................
See problems(...) for more details.

get_puf_names broken

Hi,

I've noticed recently that get_puf_names() has broken for me.

Here is my session info.

sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS

Matrix products: default
BLAS/LAPACK: /opt/intel/compilers_and_libraries_2020.4.304/linux/mkl/lib/intel64_lin/libmkl_rt.so

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] MEPS_1.3.0

loaded via a namespace (and not attached):
[1] fansi_1.0.3 withr_2.5.0 assertthat_0.2.1 utf8_1.2.2 dplyr_1.0.10 R6_2.5.1 DBI_1.1.3
[8] lifecycle_1.0.3 labelled_2.9.1 magrittr_2.0.3 pillar_1.8.1 rlang_1.0.6 cli_3.6.0 curl_4.3.2
[15] rstudioapi_0.13 ellipsis_0.3.2 vctrs_0.5.1 generics_0.1.3 forcats_0.5.1 tools_4.2.1 glue_1.6.2
[22] hms_1.1.1 compiler_4.2.1 pkgconfig_2.0.3 haven_2.5.0 tidyselect_1.2.0 tibble_3.1.8

Testing
get_puf_names(year = 2004)

Error in dplyr::mutate():
! Problem while computing LONG = LONGITUDINAL.
Caused by error in mask$eval_all_mutate():
! object 'LONGITUDINAL' not found

Python library

Can you advise which Python library to use to download the data directly from the site?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.