Skip to content
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

Feature Request: convert codes based on data dictionary #18

Open
ha0ye opened this issue Apr 17, 2022 · 1 comment
Open

Feature Request: convert codes based on data dictionary #18

ha0ye opened this issue Apr 17, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@ha0ye
Copy link

ha0ye commented Apr 17, 2022

My problem

REDCap exports data with specific numeric codes that line up with its data dictionary. Both these files can be obtained via the API, but there is no simple conversion for the encoding of radio or checkbox items.
e.g. the data dictionary will list something like "1, Yes | 2, No"

Proposed feature

Add functionality to take in exported data and data-dictionary, and re-encode radio buttons (probably as factors) and checkbox buttons (as list-columns perhaps?)

Additional notes

I had originally looked at REDCapR, but this feature seems to me to be further downstream of obtaining the data, and this package already has functions for doing data wrangling/cleaning.

I'm happy to collaborate on this (not at this exact time, but I can find time over the summer). LMK if that works or whatever your preference is!

@RaymondBalise
Copy link
Owner

Thanks for the ideas @ha0ye. Adding tools to cleanly handle factors would be a big help for novices.

We have a new release of tidyREDCap that we are testing (for a likely release this week). Once that is out the door we are going to work on shifting our code to depend on REDCapR instead of the REDCapAPI package. So, your suggestion fits nicely with our plans.

One of our team is about to take time off to have a baby. So, we need to pause our development until the middle of June. We will reach out when we pick up again.

Thanks again!

@RaymondBalise RaymondBalise added the enhancement New feature or request label Apr 17, 2022
@RaymondBalise RaymondBalise added this to the Version 1.1 milestone Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants