year-month-weekday-narrow: Narrow: year-month-weekday

year-month-weekday-narrowR Documentation

Narrow: year-month-weekday

Description

This is a year-month-weekday method for the calendar_narrow() generic. It narrows a year-month-weekday vector to the specified precision.

Usage

## S3 method for class 'clock_year_month_weekday'
calendar_narrow(x, precision)

Arguments

x

⁠[clock_year_month_weekday]⁠

A year-month-weekday vector.

precision

⁠[character(1)]⁠

One of:

  • "year"

  • "month"

  • "day"

  • "hour"

  • "minute"

  • "second"

  • "millisecond"

  • "microsecond"

  • "nanosecond"

Value

x narrowed to the supplied precision.

Examples

# Day precision
x <- year_month_weekday(2019, 1, 1, 2)
x

# Narrowed to month precision
calendar_narrow(x, "month")

clock documentation built on Sept. 11, 2024, 8:39 p.m.