View source: R/redcap_import_dates_times.R
redcap_import_datetime | R Documentation |
This function prepares date-time values in a data table for import in REDCap.
It parses date and time values and processes them using
redcap_import_dates
and redcap_import_times
. This ensures that
date-time entries, which may have been entered in various formats in Excel,
are converted into a format compatible with REDCap.
redcap_import_datetime(
var,
args_rc_dates = list(),
args_rc_times = list(),
date_only = FALSE
)
var |
Variable to convert |
args_rc_dates |
List with arguments for |
args_rc_times |
List with arguments for |
date_only |
If TRUE, only the date will be included in the output and the time value will be removed. Default = FALSE. |
converted variable
var <-c("1.2.24 11:11:00","1.2.22 11:11","1.2.24 11", "31341.34375")
redcap_import_datetime(var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.