-
Notifications
You must be signed in to change notification settings - Fork 76
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
haven now supports selective column and row reading #248
Comments
One consequence of the haven changes that was just brought up in this Stack Overflow question is that f <- tempfile(fileext = ".sas7bdat")
haven::write_sas(mtcars, f)
haven::read_sas(f, col_select = mpg)
#> # A tibble: 32 x 1
#> mpg
#> <dbl>
#> 1 21
#> 2 21
#> 3 22.8
#> 4 21.4
#> 5 18.7
#> 6 18.1
#> 7 14.3
#> 8 24.4
#> 9 22.8
#> 10 19.2
#> # ... with 22 more rows
rio::import(f, col_select = mpg)
#> Error in rio::import(f, col_select = mpg): object 'mpg' not found |
Thanks. That's useful to know. |
…in the case of '.dta' files. This is a draft PR, in the final PR, 'arg_reconcile()' will similarly be extended to all the other formats we use via 'haven'
Actually, both the haven functions and the |
@bokov yeah, what I meant was that when bare column names are passed, At the moment all |
We could just advise users to enclose the |
Please specify whether your issue is about:
The text was updated successfully, but these errors were encountered: