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

Handle redcap labels #66

Open
alnajar opened this issue Aug 1, 2023 · 0 comments
Open

Handle redcap labels #66

alnajar opened this issue Aug 1, 2023 · 0 comments

Comments

@alnajar
Copy link

alnajar commented Aug 1, 2023

The current package handles variable labels using the drop_label() function, similar to raw_or_label_headers in REDCapR. However, it can be further enhanced to handle value labels as well.

For instance, the REDCapR package offers the option to obtain raw data using API requests:

REDCapR::redcap_read_oneshot(redcap_uri="https://redcap.miami.edu/api/", 
                                   token=keyring::key_get("RED_API_KEY"),
                                   raw_or_label = "raw"      #raw option specifies to export the raw coded values rather than labels in multiple choice fields
)$data

To improve the package, I suggest incorporating the expss package functions, which allows handling data without removing labels. This enhancement will enable users to explore the value labels without needing to refer back to the "code dictionary" in Redcap. The expss::val_lab() function can be utilized for this purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant