Package: REDCapCAST 24.10.3

REDCapCAST: REDCap Castellated Data Handling

Originally forked from the R part of 'REDCapRITS' by Paul Egeler. See <https://github.com/pegeler/REDCapRITS>. 'REDCap' database casting and handling of castellated data when using repeated instruments and longitudinal projects. Keeps a focused data export approach, by allowing to only export required data from the database. '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>).

Authors:Andreas Gammelgaard Damsbo [aut, cre], Paul Egeler [aut]

REDCapCAST_24.10.3.tar.gz
REDCapCAST_24.10.3.zip(r-4.5)REDCapCAST_24.10.3.zip(r-4.4)REDCapCAST_24.10.3.zip(r-4.3)
REDCapCAST_24.10.3.tgz(r-4.4-any)REDCapCAST_24.10.3.tgz(r-4.3-any)
REDCapCAST_24.10.3.tar.gz(r-4.5-noble)REDCapCAST_24.10.3.tar.gz(r-4.4-noble)
REDCapCAST_24.10.3.tgz(r-4.4-emscripten)REDCapCAST_24.10.3.tgz(r-4.3-emscripten)
REDCapCAST.pdf |REDCapCAST.html
REDCapCAST/json (API)
NEWS

# Install 'REDCapCAST' in R:
install.packages('REDCapCAST', repos = c('https://agdamsbo.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/agdamsbo/redcapcast/issues

Datasets:

On CRAN:

5.51 score 1 stars 7 scripts 454 downloads 31 exports 74 dependencies

Last updated 12 days agofrom:1189da6c86. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 25 2024
R-4.5-winOKOct 25 2024
R-4.5-linuxOKOct 25 2024
R-4.4-winOKOct 25 2024
R-4.4-macOKOct 25 2024
R-4.3-winOKOct 25 2024
R-4.3-macOKOct 25 2024

Exports:case_match_regex_listchar2choicechar2condclean_redcap_namecreate_html_tablecreate_instrument_metad2wdoc2ddds2ddds2dd_detailedeasy_redcapfile_extensionfocused_metadataformat_subheaderget_api_keyguess_time_only_filterhtml_tag_wrapis_repeated_longitudinalmatch_fields_to_formprocess_user_inputread_inputread_redcap_instrumentread_redcap_tablesREDCap_splitredcap_widersanitize_splitserver_factoryshiny_castsplit_non_repeating_formsstrsplitxui_factory

Dependencies:askpassassertthatbackportsbase64encbitbit64bslibcachemcellrangercheckmateclicliprcommonmarkcpp11crayoncurldigestdplyrfansifastmapfilelockfontawesomeforcatsfsgenericsgluehavenhmshtmltoolshttpuvhttrjquerylibjsonlitekeyringlaterlifecyclemagrittrmemoisemimemintyopensslopenxlsx2pillarpkgconfigprettyunitsprogresspromisespurrrR6rappdirsRcppreadODSreadrREDCapRrematchrlangsassshinysodiumsourcetoolsstringistringrsystibbletidyrtidyselecttzdbutf8vctrsvroomwithrxtableyamlzip

Database-creation

Rendered fromDatabase-creation.Rmdusingknitr::rmarkdownon Oct 25 2024.

Last update: 2024-06-07
Started: 2024-02-27

Introduction

Rendered fromIntroduction.Rmdusingknitr::rmarkdownon Oct 25 2024.

Last update: 2024-02-27
Started: 2023-04-13

Readme and manuals

Help Manual

Help pageTopics
List-base regex case_whencase_match_regex_list
Simple function to generate REDCap choices from character vectorchar2choice
Simple function to generate REDCap branching logic from character vectorchar2cond
clean_redcap_nameclean_redcap_name
Create two-column HTML table for data piping in REDCap instrumentscreate_html_table
DEPRICATED Create zips file with necessary content based on data setcreate_instrument_meta
Convert single digits to wordsd2w
Doc table to data dictionary - EARLY, DOCS MISSINGdoc2dd
(DEPRECATED) Data set to data dictionary functionds2dd
Extract data from stata file for data dictionaryds2dd_detailed
Secure API key storage and data acquisition in oneeasy_redcap
Creates zip-file with necessary content to manually add instrument to databaseexport_redcap_instrument
Helper to import files correctlyfile_extension
focused_metadatafocused_metadata
Sub-header formatting wrapperformat_subheader
Retrieve project API key if stored, if not, set and retrieveget_api_key
Get the id nameget_id_name
Try at determining which are true time only variablesguess_time_only_filter
Change "hms" to "character" for REDCap upload.hms2character
Simple html tag wrapping for REDCap text formattinghtml_tag_wrap
Multi missing checkis_missing
Test if repeatable or longitudinalis_repeated_longitudinal
Completion marking based on completed uploadmark_complete
Match fields to formsmatch_fields_to_form
mtcars dataset slightly modified to use for Shiny app upload demonstrationmtcars_redcap
User input processingprocess_user_input
User input processing characterprocess_user_input.character
User input processing data.frameprocess_user_input.data.frame
User input processing defaultprocess_user_input.default
User input processing responseprocess_user_input.response
Flexible file import based on extensionread_input
Convenience function to download complete instrument, using token storage in keyring.read_redcap_instrument
Download REDCap dataread_redcap_tables
Split REDCap repeating instruments table into multiple tablesREDCap_split
Redcap Widerredcap_wider
Data set for demonstrationredcapcast_data
REDCap metadata from data baseredcapcast_meta
Replace curly apostrophes and quotes from wordreplace_curly_quote
Sanitize list of data framessanitize_split
Shiny server factoryserver_factory
Launch the included Shiny-app for database casting and uploadshiny_cast
Split a data frame into separate tables for each formsplit_non_repeating_forms
Extended string splittingstrsplitx
Correction based on time_only_filter functiontime_only_correction
UI factory for shiny appui_factory