Skip to contents

Import data

Function to easily import data from a REDCap project into R for analysis.

redcap_data()
Read REDCap data

Process data

Functions to process the REDCap data once it’s imported into R

rd_transform()
Transformation of the raw data
rd_rlogic()
REDCap logic into R logic
rd_insert_na()
Insert missing using a filter

Query generation

Functions involved in the query generation to validate the REDCap data

rd_query()
Identification of queries
rd_event()
Identification of missing event(s)
check_queries()
Check for changes between two reports of the queries
rd_export()
Exporting the dataset of the queries

Built-in dataset

Dataset that is included in the package for testing

covican
Subset of the COVICAN's database

Auxiliar functions

Auxiliar functions involved in the REDCap data processing

checkbox_names()
Change checkboxes names into the name of their options
fill_data()
Fill rows with the values in one event
recalculate()
Recalculate REDCap calculated fields
split_event()
Creation of a data frame with variables of all the forms of a specified event
split_form()
Creation of a data frame with variables of a specified form
to_factor()
Convert variables to factors
transform_checkboxes()
Transformation of checkboxes in case of having a branching logic