Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in read_ascii_setup; missing True/False value #10

Open
lucarmich opened this issue Oct 26, 2022 · 0 comments
Open

Error in read_ascii_setup; missing True/False value #10

lucarmich opened this issue Oct 26, 2022 · 0 comments
Assignees
Labels

Comments

@lucarmich
Copy link

Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://community.rstudio.com/.

Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.


Brief description of the problem
Hey Jacob! I'm trying to use the read_ascii_setup function on some data from the JARP dataset (https://www.icpsr.umich.edu/web/NACDA/studies/8450/summary); specifically the files data1.sps and data1.txt files (https://github.com/lucarmich/JARPData).

The basic code I am running is this:

Data <- read_ascii_setup(data="Data1.txt", setup_file = "Data1.sps")

And the error I am getting is:

Error in if (any(setup$begin > setup$end)) { :
missing value where TRUE/FALSE needed
In addition: Warning message:
In get_column_spaces(setup, variables, codebook) :
NAs introduced by coercion

I've also tried running the spss_acii_reader command, but it returned the same error message back.

Any help would be appreciated! Thanks!

Lucas

@jacobkap jacobkap self-assigned this Oct 27, 2022
@jacobkap jacobkap added the bug label Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants