split_redcap_dataset | R Documentation |
This function seperates a datasets into three parts: "Singular" data, which is the
data from non-repeating instruments. "missings_everywhere", which is data which is missing for each row.
The last parts are all the repeating instruments, which are referred to by their name as recorded in
dat$redcap_repeat_instrument
.
split_redcap_dataset(dat, id_name = "patid")
dat |
a |
id_name |
(character) the name of the subject ID variable. |
a list of datasets separated into the categories as described
path_to_redcap_script <- system.file("examples", "testredcap.r", package = "DescrTab2") dat <- read_redcap_formatted(path_to_redcap_script) d <- split_redcap_dataset(dat, guess_ID_variable(dat, TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.