expersso / gesis Goto Github PK
View Code? Open in Web Editor NEWR Client for GESIS Data Catalogue (DBK)
R Client for GESIS Data Catalogue (DBK)
Hello,
I guess it's not a priority, given how easy it is to install packages from GitHub, but I was saddened to see that CRAN had removed your excellent package. Resubmit one day, perhaps?
(I confess I do not know if packages can be resubmitted after removal).
All the best,
François
First of all, I wanted to thank you for creating this great package!
I am planning on using it in a workshop I will teach and noticed that download_codebook gives the error message "Error in is.url(url) : length(url) == 1 is not TRUE"
Could it be that this is because the particular study whose codebook I wanted to download has multiple files whose names include "_cdb"?
If you want to reproduce the error, the study number is "4587".
Kinda related to #12.
The download_dataset
function will fail if the "DOI" (the GESIS ID) is 3-digits long instead of 4-digits long, as e.g. with old Eurobarometer survey waves.
Example:
gesis::download_dataset(s = GESIS_SESSION, doi = 990, path = ".", filetype = ".dta")
This will fail unless 990
is converted to 0990
first. In fact, the same thing happens if the "DOI" / GESIS number provided by gesis
is used to access the studies online:
A simple fix should be:
doi <- dplyr::if_else(doi < 1000, str_c("0", doi), as.character(doi))
I guess the issue was introduced by converting "DOIs" / GESIS IDs to integers.
Please let me know if you can reproduce the error, and I'll submit a PR.
I do not know what other functions are affected.
dbk.gesis.org is dead. Will there be an update to the package making it work again through search.gesis.org?
Thanks for writing this package, it's very useful!
I have noticed that not all dois have a codebook section. So, there's an error when the download_codebook()
function does not find one on the Gesis website. For example download_codebook(doi = c("5876", "5913", "5689"))
evaluates the first doi and then stops because doi "5913"
does not have a codebook on the Gesis website (although "5689"
does and should be downloaded).
However, it would be great to have some documentation/codebook for the corresponding data. One solution would be to download the questionnaire for those cases and display a warning that a questionnaire was downloaded instead of a codebook. Another would be to find/construct a codebook from another online source (like ICPSR).
webservice-client
, r-package
, rstats
, research-data
for example ;-)
download_codebook and download_dataset both have an argument called doi and the description of that argument is "The unique identifier(s) for the data set(s)". This may be misleading/confusing for users as the number that is needed here is the study number (i.e., the number that comes after "ZA" in the dataset title in the DBK). For example, the DOI for ZA4587 is 10.4232/1.13048 (as specified in the bibliographic citation for that dataset), but the "doi" required by the gesis package functions is "4587". Hence, to avoid potential confusion it might help to change the name and description of the argument. One suggestion that I can think of could be argument doi = study (or studynr) + Description = "Study number(s) for the data set(s). The number that comes after "ZA" in the DBK study title".
For consistency, this would also require changing the column name created by the get_datasets function from doi to study or studynr or whatever else is used as an argument for download_codebook and download_dataset.
download_dataset(
s = gesis_session,
# example Eurobarometer waves
doi = c("1036", "1037", "1320"),
path = ".",
filetype = ".dta"
)
Result:
Error in html_form(s)[[1]] : subscript out of bounds
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.