Skip to content

Feature Request: convert codes based on data dictionary #18

Open

Description

@ha0ye

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!

Activity

  1. RaymondBalise commented on Apr 17, 2022

    @RaymondBalise
    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!

  2. added
    enhancement
    on Apr 17, 2022
  3. added this to the Version 1.1 milestone on Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions