Description Usage Arguments Value Note Examples
the lubridate as_date function doesn't handle dates BC correctly, hence this function creates the BC date by first projecting the date as AD, and then subtract from 0 AD.
1 | as_BC_date(year, month = 1, day = 1)
|
year |
the year BC (either + or -) |
month |
the calender month, if omitted 01 is asumed |
day |
the day of that month, if omitted 01 is assumed |
date as BC date
this function is for internal use
the year can be passed as negative or positive, the function assumes the user needs a BC date
1 2 3 4 | ## Not run:
BCDate <- as_BC_date(-2150, 1, 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.