parseBranchingLogic: Parse Branching Logic

Description Usage Arguments Details Value Author(s)


Branching logic from the REDCap Data Dictionary is parsed into R Code and returned as expressions. These can be evaluated if desired and allow the user to determine if missing values are truly missing or not required because the branching logic prevented the variable from being presented.





A vector of REDCap branching logic statements. These are usually passed as the vector meta_data$branching_logic.


For a study, I was asked to identify which subjects had missing values so that remaining data could be collected. The initial pass of produced a lot of subjects missing values where there was no need to collect data because they did not qualify for some variables in the branching logic. Parsing the logic allowed me to determine which values we expected to be missing and narrow the search to just those subjects with legitimately missing values.


Returns a list of unevaluated expressions.


Benjamin Nutter

Search within the redcapAPI package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.