View source: R/widerRepeated.R
widerRepeated | R Documentation |
Converts a dataframe into wide format given a single REDCap form.
This function assumes that the Records argument is the result of exportRecordsTyped
,
and that all empty values have been previously dropped. This will only widen data frames
that have a unique identification variable (e.g. 'record_id'), "redcap_event_name" and
"redcap_repeat_instrument" in the fields. Otherwise, the data passed in will be returned
unchanged.
widerRepeated(Records, rcon)
Records |
|
rcon |
A |
recastRecords()
,
guessCast()
,
guessDate()
,
castForImport()
,
mChoiceCast()
,
splitForms()
## Not run:
unlockREDCap(connections = c(rcon = "project_alias"),
url = "your_redcap_url",
keyring = "API_KEYs",
envir = globalenv())
Records <- exportRecordsTyped(rcon)
widerRepeated(Records, rcon)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.