-
Notifications
You must be signed in to change notification settings - Fork 16
[fb-survey] Create codebook-generating tool #1071
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
Conversation
capnrefsmmat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks good. I think the only thing I'd add is documenting the spreadsheets in the README, so operators adopting a new survey wave know which spreadsheets they need to update and how
| # get the text of the question: | ||
| questions <- displayed_questions %>% | ||
| map_chr(~ .x$Payload$QuestionText) %>% | ||
| str_remove_all("<[^<>]+>") %>% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize that the survey only contains limited HTML and this is completely harmless here, but I can't resist linking this https://stackoverflow.com/a/1732454
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol a classic 😂
Do these exist yet? |
By "spreadsheets" I mean |
capnrefsmmat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good. I think the next steps are:
- Get all the QSFs together
- Run and produce a "prototype" codebook
- Have Wichada and Facebook review it and suggest changes to the data (e.g. I'd probably add the timezone to the date column descriptions in
static_microdata_fields.csv - Release to data users
Description
Make tool to parse survey .qsf files and create a codebook with information about each survey item in a given wave.
Changelog
generate-codebook.Rbased off of Jacob's Wave 7 processing code.qsf-utils.Rto share some basic utilities withqsf-differ.R.