-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Something strange is going on with the SDDF files for the round 6. It was working before but not any more.
For example import_sddf_country(country = "Albania", rounds = 6)
returns an error:
> import_sddf_country(country = "Albania", rounds = 6)
Downloading ESS6
|=====================================================================================| 100%
Error in vapply(dir_download, list.files, pattern = paste0(format_ext, :
values must be length 1,
but FUN(X[[1]]) result is length 2
However, I do not see anything wrong with the data file as this is working:
> download_sddf_country(country = "Albania", rounds = 6, output_dir = "~/data")
Downloading ESS6
|=====================================================================================| 100%
All files saved to /home/djhurio/data
> haven::read_stata(file = "~/data/ESS_Albania/ESS6/ESS6_AL_SDDF.dta")
# A tibble: 1,201 x 6
cntry idno psu samppoin stratify prob
<chr> <dbl> <dbl> <dbl> <chr> <dbl>
1 AL 1 57 57 6 0.000730
2 AL 2 80 80 9 0.000418
3 AL 3 198 198 22 0.000193
4 AL 4 57 57 6 0.000584
5 AL 5 72 72 8 0.000427
6 AL 6 185 185 20 0.0118
7 AL 7 49 49 5 0.000445
8 AL 8 72 72 8 0.000427
9 AL 9 49 49 5 0.000594
10 AL 10 55 55 6 0.000733
# … with 1,191 more rows
Thanks!
Metadata
Metadata
Assignees
Labels
No labels