get_day_of_year: Julian Date

get_day_of_yearR Documentation

Julian Date

Description

A wrapper to retrieve the Julian date.

Usage

get_day_of_year(timestamp, format = "%Y-%m-%d %H:%M:%S")

Arguments

timestamp

A character or POSIX-formatted vector containing timestamp information

format

The date-time format of timestamp, if it is a character vector

Value

A numeric vector of Julian dates.

Examples

key_dates <- c("2018-01-01", "2018-12-31")

get_day_of_year(key_dates, "%Y-%m-%d")


AGread documentation built on Sept. 13, 2022, 5:06 p.m.