Learn R Programming

REDCapDM

        

The R package REDCapDM has been developed with the objective of facilitating the management of data for projects using the REDCap platform. It is capable of supporting both direct data export and access via the REDCap API. REDCapDM offers a comprehensive variety of functions, including the ability to preprocess data, generate detailed query reports for issues such as outliers or missing values, and track the resolution of each identified query.

REDCap (Research Electronic Data CAPture) is a widely-used web application developed at Vanderbilt University for creating and managing online surveys and databases. It includes an API (Application Programming Interface) that serves as an interface allowing external applications to connect to REDCap remotely, and is used to programmatically retrieve or modify project data or settings within REDCap, such as importing or exporting data.

Installation

The release version can be installed from CRAN.

install.packages("REDCapDM")

The development version can be installed from GitHub after installing the remotes package.

install.packages("remotes") # Run this line if the 'remotes' package isn't installed already.
remotes::install_github("bruigtp/REDCapDM")

Getting Started

To learn more about the package’s functionality, visit the REDCapDM website. The site includes detailed descriptions of the package's functions and access to vignettes that demonstrate how to use REDCapDM effectively in your projects.

Getting help

If you encounter a clear bug, please file an issue with a minimal reproducible example on GitHub: Issues.

Published Work

For an in-depth exploration of REDCapDM, refer to the published article in BMC Medical Research Methodology:
REDCapDM: An R package with a set of data management tools for a REDCap project

Citation

> citation("REDCapDM")

To cite package ‘REDCapDM’ in publications use:

  Carmezim J, Satorra P, Peñafiel J, García E, Pallarès N, Santos N, Tebé C (2024). “REDCapDM: An R package with a
  set of data management tools for a REDCap project.” _BMC Medical Research Methodology_, *24*(1), 55.
  doi:10.1186/s12874-024-02178-6 <https://doi.org/10.1186/s12874-024-02178-6>.

A BibTeX entry for LaTeX users is

  @Article{,
    title = {REDCapDM: An R package with a set of data management tools for a REDCap project},
    author = {João Carmezim and Pau Satorra and Judith Peñafiel and Esther García and Natàlia Pallarès and Naiara Santos and Cristian Tebé},
    journal = {BMC Medical Research Methodology},
    year = {2024},
    volume = {24},
    number = {1},
    pages = {55},
    doi = {10.1186/s12874-024-02178-6},
  }

About

Package: REDCapDM

Authors: João Carmezim, Pau Satorra, Judith Peñafiel, Esther García, Natàlia Pallarès, Cristian Tebé.

Maintainer: João Carmezim

License: MIT + file LICENSE

Encoding: UTF-8

Depends: R (>= 3.6.0)

Copy Link

Version

Install

install.packages('REDCapDM')

Monthly Downloads

407

Version

1.0.1

License

MIT + file LICENSE

Maintainer

João Carmezim

Last Published

January 24th, 2026

Functions in REDCapDM (1.0.1)

split_event

Creation of a Data Frame with Variables from All Forms of a Specified Event
to_factor

Convert Variables to Factors
recalculate

Recalculate REDCap Calculated Fields
round

Round Numbers to a Specified Number of Digits ----
redcap_data

Read REDCap data
split_form

Creation of a Data Frame with Variables from a Specified Form
transform_checkboxes

Transformation of Checkboxes with Branching Logic
check_queries

Check for Changes Between Two Query Reports
covican

Subset of COVICAN's Database
rd_dates

Transform Dates and Datetimes in REDCap Data
check_proj

Handle Project Arguments
rd_dictionary

Transform the data dictionary and handle branching logic
checkbox_names

Change Checkboxes Names to Option Names
rd_delete_vars

Delete Variables from REDCap Dataset and Dictionary
rd_checkbox

Transform Checkbox Variables in a REDCap Project
fill_data

Fill Rows with Values from One Event
rd_factor

Convert Variables to Factors in a REDCap Dataset
rd_query

Identification of Queries
rd_insert_na

Insert Missing Values Using a Filter
rd_rlogic

Translate REDCap Logic to R Logic
rd_event

Identify Missing Events in REDCap Data
rd_transform

Transformation of the Raw Data
rd_recalculate

Recalculate and Verify Calculated Fields in REDCap Data
rd_split

Split a REDCap dataset by form or event
REDCapDM-package

Managing REDCap Data: The R package REDCapDM / REDCapDM: A Toolkit for Managing REDCap Data in R
rd_export

Export Queries to an Excel File