-
Notifications
You must be signed in to change notification settings - Fork 72
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
Missing labels for updated response options in fetch_survey() #278
Comments
I'm assuming you were using
Are you referring to the manual download from the webpage, or something else? Also, did the changes to the question I'm thinking this could relate several things, but one main underlying problem is that @juliasilge, I think this is pointing again to the need for the work around #267. |
@jmobrien this all adds up to me. The changes to satis_overall happened after publication, and the factor levels seem to point in the direction of the description endpoint. I was referring to the csv exported from the GUI. I just tried fetch_survey with convert = FALSE and the result is the same as reading in the csv. |
@juliasilge what would you think about making As @context-dependent noted, that change would just mean that users by default get the same data they get from a web download with default settings (still with some bonuses like cleaning up the metadata row & a column map) |
@jmobrien changing the default behaviour to The short-term options, imo are: Set default to
|
I'm hesitant to change the default behavior for something that has worked the same way for such a long time (predating my own involvement in this package); that is a type of change that you can't really inform users about, apart from a message every single time they use the function (folks hate that). I think it likely would be better to change over to the new endpoint instead, for example supporting the |
@context-dependent Thanks for your offer of help. It feels like the real fixes here are intertwined with a lot of other factors, so I'd be reluctant to have you commit much work to something that's likely to get changed. But, if you're up for it, adding some kind of check + warning for parsing failures might be a great stopgap measure. Basically, where if (@juliasilge thoughts? Along w/warning, should we also tack on any unmatched elements to the vector of factor levels? Simple warnings an easy way to preserve existing behavior for now--but, basic users would have a hard time fixing anything after a warning (b/c all non-matched values are now |
That sounds like a reasonable stopgap measure to me, and I would probably lean toward doing a simple warning to start with (with a recommendation to redownload with |
That's probably a good balance, yes. @context-dependent is this something you'd like to tackle? If so, great, and let us know if you have any questions. (If useful, you can see several recent use examples for the |
Thanks! I would be happy to give it a shot next week if that works. |
Problem
Recently found several instances of this behaviour. I'm not sure exactly what's going on, but I have some guesses. Below, I compare
example_responses_Rics <- fetch_survey()
toexample_responses_csv <- read_csv()
to illustrate.In the survey, the question labeled
satis_overall
began with a set of response options that were very slightly altered. The Rics export fails to parse these response options, though the data are present in the untreated csv export.Starting with the following:
Counting the column produces
While doing the same for the csv export
Shows the updated response uptions, but as unordered character values.
In the Rics export, the column is a factor, but its levels are
outdated (they have a space that was deleted).
Thoughts on solution
fetch_survey()
uses Qx's metadata to parse factors. The response options metadata appears not to update with changes to the survey, so I don't see a clear path to solving this problem while maintaining both the factor parsing functionality and the fast metadata * csv approach.It feels like it probably shouldn't fail silently, as in many use cases the qualtRics user and the survey maintainer are not the same person.
The .sav export is bigger than the csv, but it bakes in updated labels that can be converted into factor levels. To me, this adds support for parameterizing the export format in
fetch_survey()
, though I'm not sure where the zeitgeist is at on that concept.The text was updated successfully, but these errors were encountered: