year-quarter-day-widen {clock}R Documentation

Widen: year-quarter-day

Description

This is a year-quarter-day method for the calendar_widen() generic. It widens a year-quarter-day vector to the specified precision.

Usage

## S3 method for class 'clock_year_quarter_day'
calendar_widen(x, precision)

Arguments

x

⁠[clock_year_quarter_day]⁠

A year-quarter-day vector.

precision

⁠[character(1)]⁠

One of:

  • "year"

  • "quarter"

  • "day"

  • "hour"

  • "minute"

  • "second"

  • "millisecond"

  • "microsecond"

  • "nanosecond"

Value

x widened to the supplied precision.

Examples

# Quarter precision
x <- year_quarter_day(2019, 1)
x

# Widen to day precision
calendar_widen(x, "day")

# Or second precision
sec <- calendar_widen(x, "second")
sec

[Package clock version 0.7.0 Index]