Description Usage Arguments Details Value Author(s) Examples
Function gendate
compiles different types of calendar dates and returns vector of class "Date"
. gendate
recognizes single argument x
as a vector of class "character"
, "Date"
, "POSIXct"
or "POSIXlt"
.
1 | gendate(x)
|
x |
vector of calendar dates of class |
The gendate
function rounds different types of date to single days. If more precise time point is specified by "POSIXct"
or "POSIXlt"
class, only the information about the day is used. In the case of character input, two formats are recognized: "2013-05-30"
and "30.05.2013"
also in shortened variant "2013-5-30"
and "30.5.2013"
. Only the first 10 characters are used in both cases. If only the month (as "2013-05"
or "5.2013"
) or the year (as "2013"
) is specified by the character string, the date is placed into the 15th day in the case of month or into a 1st July in the case of year.
res |
vector of dates of class |
Jiri Kalina
kalina@mail.muni.cz
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.