Changelog
Source:NEWS.md
REDCapCAST 23.6.2
This version marks the introduction of a few helper functions to handle database creation.
Functions
New:
ds2dd()
function migrating from thestRoke
-package. Assists in building a data dictionary for REDCap from a dataset.New:
strsplitx()
function to ease the string splitting as an extension ofbase::strsplit()
. Inspiration from https://stackoverflow.com/a/11014253/21019325 and https://www.r-bloggers.com/2018/04/strsplit-but-keeping-the-delimiter/.New:
d2n()
function converts single digits to written numbers. Used to sanitize variable and form names in REDCap database creation. For more universal number to word I would suggestenglish::word()
orxfun::numbers_to_words()
, though I have not been testing these.
REDCapCAST 23.3.1
New name: REDCapCAST
To reflect new functions and the limitation to only working in R, I have changed the naming of the fork, while still, of course, maintaining the status as a fork.
The versioning has moved to a monthly naming convention.
The main goal this package is to keep the option to only export a defined subset of the whole dataset from the REDCap server as is made possible through the REDCapR::redcap_read()
function, and combine it with the work put into the REDCapRITS package and the handling of longitudinal projects and/or projects with repeated instruments.
Functions:
read_redcap_tables()
NEW: this function is mainly an implementation of the combined use ofREDCapR::readcap_read()
andREDCap_split()
to maintain the focused nature ofREDCapR::readcap_read()
, to only download the specified data. Also implements tests of valid form names and event names. The usual fall-back solution was to get all data.redcap_wider()
NEW: this function pivots the long data frames fromread_redcap_tables()
usingtidyr::pivot_wider()
.focused_metadata()
NEW: a hidden helper function to enable a focused data acquisition approach to handle only a subset of metadata corresponding to the focused dataset.