time_convert | R Documentation |
The function converts a Julian Day value to a date, to POSIXct
if a
year is provided, otherwise to POSIXlt
.
time_convert(input, output, timezone = "UTC", year)
input |
|
output |
|
timezone |
|
year |
|
Numeric
vector,
Michael Dietze
## convert Julian Day 18 to POSIXct
time_convert(input = 18, output = "POSIXct")
## convert Julian Day 18 to yyyy-mm-dd
time_convert(input = 18, output = "yyyy-mm-dd")
## convert yyyy-mm-dd to Julian Day
time_convert(input = "2016-01-18", output = "JD")
## convert a vector of Julian Days to yyyy-mm-dd
time_convert(input = 18:21, output = "yyyy-mm-dd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.