agdamsbo/REDCapCAST: REDCapCAST 25.3.1
Authors/Creators
Description
FIX:
as_factor()now interprets empty variables with empty levels attribute as logicals to avoid returning factors with empty levels.NEW:
as_logical(): interprets vectors with two levels as logical if values matches supplied list of logical pairs like "TRUE"/"FALSE", "Yes"/"No" or 1/2. Eases interpretation of data from databases with minimal metadata. Works on vectors and for data.frames. Interprets vectors with single value also matching to any of supplied levels (Chooses first match pair if several matches).NEW:
easy_redcap(): new parameterdata_formatto specify data format as c("wide", "list", "redcap", "long"). For now "redcap" and "long" is treated equally. This was added to ease MMRM analyses. In that case, missing baseline values can be carried forward as "last observation carried forward" using thetidyr::fill()function specifying variables to fill. Interesting discussion on filling data here on Stackoverflow.redcap_read_tables()now has the option "none" for thesplit_formsparameter to allow not splitting the data.FIX:
ds2dd_detailed(): Theconvert_logicalsparameter has been turned off by default and logicals are now interpreted as field type "truefalse". Converting logicals to factors would result in the numeric values being 1 for FALSE and 2 for TRUE, which is opposite of the traditional notation and could lead to serous problems if not handled correctly. This should solve it.
Files
agdamsbo/REDCapCAST-v25.3.1.zip
Files
(257.5 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:6e18f8ade19bd2245240a3cb5a205da9
|
257.5 kB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/agdamsbo/REDCapCAST/tree/v25.3.1 (URL)
Software
- Repository URL
- https://github.com/agdamsbo/REDCapCAST