View source: R/redcap_import_dates_times.R
redcap_import_times | R Documentation |
This function prepares time values in a data table for import in REDCap. In Excel, time values can be entered in various formats. This function attempts for the most common ways time values may have been entered and converts them into a format compatible with REDCap.
redcap_import_times(var, unk_min = "00", unk_sec = "00")
var |
Variable to convert |
unk_min |
Minutes to use if unknown. The default is 00 (11 -> 11:00). |
unk_sec |
Seconds to use if unknown. The default is 00 (11:11 -> 11:11:00). |
converted variable
var <-c("11:11:00","11:11","11","0.34375" )
redcap_import_times(var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.