View source: R/data-item-interpreting.R
naaccr_datetime | R Documentation |
Parse NAACCR-formatted datetimes
naaccr_datetime(datetime, tz = "")
datetime |
Character vector of datetimes in HL7 OBR-7 format
( |
tz |
time zone specification to be used for the conversion,
if one is required. System-specific (see time zones),
but |
A POSIXct
vector. Any incomplete or invalid datetimes are
converted to NA
. The original strings can be retrieved with the
naaccr_encode
function.
input <- c("20151031100856", "20140822 ", "99999999")
d <- naaccr_datetime(input)
d
naaccr_encode(d, "pathDateSpecCollect1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.