REDCap Metadata Casting and Castellated Data Handling
Check if vector is all NA
Preserve all factor levels from REDCap data dictionary in data export
Apply REDCap filed labels to data frame
Convert labelled vectors to factors while preserving attributes
List-base regex case_when
Overview of REDCapCAST data for shiny
Overview of REDCapCAST meta data for shiny
Simple function to generate REDCap choices from character vector
Simple function to generate REDCap branching logic from character vect...
Very simple function to remove rich text formatting from field label a...
clean_redcap_name
Compacting a vector of any length with or without names
Create two-column HTML table for data piping in REDCap instruments
DEPRICATED Create zips file with necessary content based on data set
Convert single digits to words
Doc table to data dictionary - EARLY, DOCS MISSING
Extract data from stata file for data dictionary
(DEPRECATED) Data set to data dictionary function
Secure API key storage and data acquisition in one
Creates zip-file with necessary content to manually add instrument to ...
Drop unused levels preserving label data
Allows conversion of factor to numeric values preserving original leve...
DEPRECATED Helper to import files correctly
focused_metadata
Converts REDCap choices to factor levels and stores in labels attribut...
Sub-header formatting wrapper
Retrieve project API key if stored, if not, set and retrieve
Extract attribute. Returns NA if none
Get the id name
Try at determining which are true time only variables
Guess time variables based on naming pattern
Finish incomplete haven attributes substituting missings with values
Change "hms" to "character" for REDCap upload.
Simple html tag wrapping for REDCap text formatting
Multi missing check
Test if repeatable or longitudinal
Tests for multiple label classes
Completion marking based on completed upload
Match fields to forms
Get named vector of factor levels and values
Nav_bar defining function for shiny ui
Applying var2fct across data set
Helper to auto-parse un-formatted data with haven and readr
Tests if vector can be interpreted as numeric without introducing NAs ...
Test if vector can be interpreted as roman numerals
User input processing character
User input processing data.frame
User input processing default
User input processing
User input processing response
Flexible file import based on extension
Convenience function to download complete instrument, using token stor...
Download REDCap data
Split REDCap repeating instruments table into multiple tables
Transforms list of REDCap data.frames to a single wide data.frame
REDCapCAST: REDCap Metadata Casting and Castellated Data Handling
Replace curly apostrophes and quotes from word
Sanitize list of data frames
Set attributes for named attribute. Appends if attr is NULL
Launch the included Shiny-app for database casting and upload
Split a data frame into separate tables for each form
Extended string splitting
Transfer variable name suffix to label in widened data
Correction based on time_only_filter function
Convert vector to factor based on threshold of number of unique levels
Named vector to REDCap choices (wrapping compact_vec()
)
Casting metadata for REDCap database creation and handling of castellated data using repeated instruments and longitudinal projects in 'REDCap'. Keeps a focused data export approach, by allowing to only export required data from the database. Also for casting new REDCap databases based on datasets from other sources. Originally forked from the R part of 'REDCapRITS' by Paul Egeler. See <https://github.com/pegeler/REDCapRITS>. 'REDCap' (Research Electronic Data Capture) is a secure, web-based software platform designed to support data capture for research studies, providing 1) an intuitive interface for validated data capture; 2) audit trails for tracking data manipulation and export procedures; 3) automated export procedures for seamless data downloads to common statistical packages; and 4) procedures for data integration and interoperability with external sources (Harris et al (2009) <doi:10.1016/j.jbi.2008.08.010>; Harris et al (2019) <doi:10.1016/j.jbi.2019.103208>).
Useful links