epicentre-msf / redcap

R utilities for interacting with REDCap
https://epicentre-msf.github.io/redcap/
Other
7 stars 3 forks source link

Convert redcap radio input variables to ordered factors in R on import #13

Closed PaulC91 closed 2 hours ago

PaulC91 commented 2 hours ago

Is it possible to retrieve the radio options for a given variable via the API? If so, it would be really useful if these variables arrived in R as factors with their levels matching the radio options in redcap. I often have to do this myself post import for visualisation purposes which involves storing the level orders of several variables as character vectors, so this would save a lot of time.

PaulC91 commented 2 hours ago

just realised this is already an option oops