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

Option to convert all MDCs to NA even on numeric data #195

Open
emoryn opened this issue Jul 10, 2024 · 5 comments
Open

Option to convert all MDCs to NA even on numeric data #195

emoryn opened this issue Jul 10, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@emoryn
Copy link

emoryn commented Jul 10, 2024

Feature Request Description

I notice on categorical and logical data types it converts all MDCs to NA, I would like this also for numeric data types. Or if I could set an option somewhere to include or exclude MDCs would be the best.

Proposed Solution

I'm not sure exactly how this works in the background to propose a more specific solution

Describe alternatives you've considered
running code on my own to replace the MDCs with NA

@emoryn emoryn added the enhancement New feature or request label Jul 10, 2024
@ezraporter ezraporter self-assigned this Jul 11, 2024
@ezraporter
Copy link
Collaborator

Thanks for opening the issue!

We had some discussion of this on #181. What we concluded at the time was that implementing this for general field types would require us to add an additional API call to retrieve the MDCs from the REDCap project info and we didn't think the benefit justified the extra API call.

For you use case, how cumbersome is manually replacing the MDCs? @skadauke did say at the time we might reconsider if someone opened an issue 😊

@emoryn
Copy link
Author

emoryn commented Aug 16, 2024 via email

@emoryn
Copy link
Author

emoryn commented Aug 16, 2024 via email

@ezraporter
Copy link
Collaborator

Thanks for the additional info! We have to think a little more about the best way to proceed on this given competing priorities and the (small) number of users we anticipate needing this feature.

In general, I think we'd favor the approach of having a separate function that modifies the supertibble to convert MDCs to NAs rather than baking it into extract_tibble(). It's possible I'll have some time in the next couple weeks to work on this and will report back here if I do.

@emoryn
Copy link
Author

emoryn commented Aug 20, 2024 via email

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