Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Script to wrangle the final dataset#2

Open
nacnudus wants to merge 10 commits intomainfrom
wrangle-final-data
Open

Script to wrangle the final dataset#2
nacnudus wants to merge 10 commits intomainfrom
wrangle-final-data

Conversation

@nacnudus
Copy link
Contributor

@nacnudus nacnudus commented Nov 27, 2020

Summary

  • src/make_data/wrangle-raw.R Wrangle the final dataset that was provided on 2020-11-26
  • src/make_data/wrangle.R Earlier script to wrangle the provisional data, which wasn't merged before.

You'll need to download the data manually. I didn't do anything fancy with the Google Drive API, but @avisionh has some code for that.

data/raw/
├── Copy of questionnaire_definition_184_responses.csv
├── Copy of questionnaire_definition_185_responses.csv
├── Copy of questionnaire_definition_186_responses.csv
├── Copy of questionnaire_definition_187_responses.csv
├── Copy of questionnaire_definition_188_responses.csv
├── Copy of questionnaire_definition_206_responses.csv
├── Copy of questionnaire_definition_207_responses.csv
├── Copy of questionnaire_definition_212_responses.csv
└── Skills Measure Main November (Anon) - scores and pupil demographics only.xlsx

You might also need to run renv::restore() to get new dependencies.

Checklists

General checks

  • Code runs
  • Developments are secure and ethical)
  • You have made proportionate checks that the code works correctly
  • Test suite passes (N/A)
  • Assumptions, and caveats log updated (see docs/aqa/assumptions_caveats.md), if necessary
  • Minimum usable documentation written in the docs folder

Project-specific checks

These are additional checks determined necessary according to the analytical quality assurance plan
(see docs/aqa/aqa_plan.md).

  • Check 1
  • Check 2
  • Check 3

avisionh and others added 10 commits November 27, 2020 12:51
This is so we can link up the data.
This is so we can get in a format ImpactEd are expecting.
This is inspired by Duncan's code.
This is so we can pivot wider without creating lists.

Also, export to csv for sharing.
This is to update packages used in scripts.
This is because the second script cannot call the first script (causes RStudio to abort). One suspects it is to do with Google Authorisation not being able to apply across scripts.

Move function to separate script so it can be tested more easily and to modularise code.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants