as_iso_year_week_day: Convert to iso-year-week-day

Description Usage Arguments Value Examples

View source: R/iso-year-week-day.R

Description

as_iso_year_week_day() converts a vector to the iso-year-week-day calendar. Time points, Dates, POSIXct, and other calendars can all be converted to iso-year-week-day.

Usage

1

Arguments

x

[vector]

A vector to convert to iso-year-week-day.

Value

A iso-year-week-day vector.

Examples

1
2
3
4
5
6
7
8
# From Date
as_iso_year_week_day(as.Date("2019-01-01"))

# From POSIXct, which assumes that the naive time is what should be converted
as_iso_year_week_day(as.POSIXct("2019-01-01 02:30:30", "America/New_York"))

# From other calendars
as_iso_year_week_day(year_quarter_day(2019, quarter = 2, day = 50))

clock documentation built on April 23, 2021, 1:06 a.m.