Description Usage Arguments Value Author(s) Examples
parse character vector to Date (base::as.Date) or Date.Time (base::as.POSIXct or chron::chron) objects.
1 2 3 |
x.date |
date character vector. |
x.time |
time character vector. |
format |
list containing datetime format, default: list(date=..., time=...), if format$time = NULL date representation (as.Date) will be used for parsing. |
parse.to |
specifying datetime representation, that will be used for parsing, either chron (default) or as.POSIXct. |
timezone |
timezone only necessary if POSIX representation used, default "GMT" |
date or date.time object
Johannes Brenner johannes.brenner@ufz.de
1 2 3 4 5 6 7 8 9 10 11 12 | x.time <- c("00:20:00", "00:40:00", "01:00:00")
x.date <- rep("2012-01-01", 3)
# chron representation
help_parseDateTime(x.date, x.time, parse.to="chron")
# POSIX representation
help_parseDateTime(x.date, x.time, parse.to="POSIX",
timezone="GMT")
# Date representation
help_parseDateTime(x.date, x.time=NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.