CHOP-CGTInformatics / REDCapTidieR

Makes it easy to read REDCap Projects into R
https://chop-cgtinformatics.github.io/REDCapTidieR/
Other
33 stars 8 forks source link

Add factor levels to redcap_events col #211

Closed rsh52 closed 2 weeks ago

rsh52 commented 4 weeks ago

Description

This PR seeks to add factor levels and their associated order to the event names and their associated labels when available in the redcap_events column of the supertibble. It does not change how redcap_event appears in the data tibbles of the supertibble, which I think is fine since it should represent the REDCapR output. Users can easily get the level order from the redcap_events column of the supertibble with this branch's setup and it will serve my use case for REDCapExploreR.

Proposed Changes

List changes below in bullet format:

Issue Addressed

Closes #210

PR Checklist

Before submitting this PR, please check and verify below that the submission meets the below criteria:

Code Review

This section to be used by the reviewer and developers during Code Review after PR submission

Code Review Checklist