Description Usage Arguments Value Note Author(s) Examples
Converts a character vector into a Date object and checks for missing dates.
1 |
x |
A character vector with dates in format 'yyyymmdd' with no NA's and no duplicates. |
A list with two elements:
dates
Date object in format yyyy-mm-dd, chronologically ordered.
missing
Non-occuring dates between chronolocically first and last input date.
If missing
is 'None' and no warning is given, the
dates in x
are complete and in chronological order.
The function is not thoroughly protected against an incorrect input format.
J. Gross, A. Moeller.
1 2 | x <- c('20020105', '20020102', '20020103')
convert_chardate(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.