REDCap Castellated data handling https://agdamsbo.github.io/REDCapCAST/
Go to file
Andreas Gammelgaard Damsbo 767d03f45f
Merge pull request #7 from agdamsbo/docs
Updated README and two new vignettes. A little basic for now.
2024-02-26 20:06:46 +00:00
.github gha to support renv 2024-01-17 13:56:31 +01:00
app shiny app moved to app folder and seperate files for possible shinylive deploy 2024-02-26 20:32:26 +01:00
data slightly modified mtcars for upload testing 2024-02-26 15:07:26 +01:00
data-raw slightly modified mtcars for upload testing 2024-02-26 15:07:26 +01:00
inst updated 2024-02-05 21:34:45 +01:00
man first commit to add shiny app for basic upload of dictionary and dataset 2024-02-26 09:34:05 +01:00
pkgdown/favicon updated description, icon on favicons ✌️🧢 2023-06-02 12:07:20 +02:00
R shiny app moved to app folder and seperate files for possible shinylive deploy 2024-02-26 20:32:26 +01:00
renv shiny app moved to app folder and seperate files for possible shinylive deploy 2024-02-26 20:32:26 +01:00
test-data/test_splitr formatting 2024-02-06 14:15:36 +01:00
tests new version 2023.12.1 with two bug fixes and a new wrapper function 2023-12-20 09:01:40 +01:00
vignettes Updated README and two new vignettes. A little basic for now. 2024-02-26 21:05:02 +01:00
_pkgdown.yml new workflow 2023-07-04 16:58:12 +02:00
.gitignore Merge pull request #6 from agdamsbo/shiny-app 2024-02-26 19:59:24 +00:00
.Rbuildignore minor revs 2024-02-09 09:29:34 +01:00
.Renviron new version 2023.12.1 with two bug fixes and a new wrapper function 2023-12-20 09:01:40 +01:00
.Rprofile renv initiated 2024-01-17 13:54:38 +01:00
codecov.yml page, test and coverage 2023-03-08 11:50:44 +01:00
cran-comments.md cran comments 2024-01-09 13:31:26 +01:00
DESCRIPTION shiny app moved to app folder and seperate files for possible shinylive deploy 2024-02-26 20:32:26 +01:00
LICENSE.md license 2023-03-08 20:18:39 +01:00
NAMESPACE first commit to add shiny app for basic upload of dictionary and dataset 2024-02-26 09:34:05 +01:00
NEWS.md updated docs 2024-02-07 20:11:00 +01:00
README.md Updated README and two new vignettes. A little basic for now. 2024-02-26 21:05:02 +01:00
REDCapCAST.Rproj first commit to add shiny app for basic upload of dictionary and dataset 2024-02-26 09:34:05 +01:00
renv.lock shiny app moved to app folder and seperate files for possible shinylive deploy 2024-02-26 20:32:26 +01:00

GitHub R package version CRAN/METACRAN DOI R-CMD-check Page deployed Codecov test coverage CRAN downloads Lifecycle:
experimental

REDCapCAST package

REDCap database casting and handling of castellated data when using repeated instruments and longitudinal projects.

This package is a fork of pegeler/REDCapRITS. The REDCapRITS represents great and extensive work to handle castellated REDCap data in different programming languages. This fork is purely minded on R usage and includes a few implementations of the main REDCap_split function.

THis package is very much to be seen as an attempt at a REDCap-R foundry for handling both the transition from dataset/variable list to database and the other way, from REDCap database to a tidy dataset. The goal was also to allow for a "minimal data" approach by allowing to filter records, instruments and variables in the export to only download data needed. I think this approach is desireable for handling sensitive, clinical data. No similar functionality is available from similar tools (like REDCapR or REDCapTidieR). Please refer to REDCap-Tools for other great tools.

Use and immprovements

This package is primarily relevant for working with longitudinal projects and/or projects using repeated instruments. Here is just a short descirption of the main functions:

  • REDcap_split(): Works largely as the original REDCapRITS::REDCap_split(). It takes a REDCap dataset and metadata (data dictionary) to split the data set into a list of dataframes of instruments.

  • read_redcap_tables(): wraps the use of REDCapR::redcap_read() with REDCap_split() to ease the export of REDCap data.

  • redcap_wider(): pivots each data frame with repeated instruments to a wide format utilizing the tidyr::pivot_wider() from the tidyverse.

  • easy_redcap(): combines secure API key storage with the keyring-package, focused data retrieval and optional widening. This is the recommended approach for easy data access and analysis.

...

Future

The plan with this package is to be bundled with a Handbook on working with REDCap from R. I plan to also include functionality to assist in casting (yes, pun intended) the initial REDCap database.

Installation

The package is available on CRAN. Install the latest version:

install.packages("REDCapCAST")

Install the latest version directly from GitHub:

remotes::install_github("agdamsbo/REDCapCAST")