1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iso-year-week-day.R
\name{iso-year-week-day-group}
\alias{iso-year-week-day-group}
\alias{calendar_group.clock_iso_year_week_day}
\title{Grouping: iso-year-week-day}
\usage{
\method{calendar_group}{clock_iso_year_week_day}(x, precision, ..., n = 1L)
}
\arguments{
\item{x}{\verb{[clock_iso_year_week_day]}
A iso-year-week-day vector.}
\item{precision}{\verb{[character(1)]}
One of:
\itemize{
\item \code{"year"}
\item \code{"week"}
\item \code{"day"}
\item \code{"hour"}
\item \code{"minute"}
\item \code{"second"}
\item \code{"millisecond"}
\item \code{"microsecond"}
\item \code{"nanosecond"}
}}
\item{...}{These dots are for future extensions and must be empty.}
\item{n}{\verb{[positive integer(1)]}
A single positive integer specifying a multiple of \code{precision} to use.}
}
\value{
\code{x} grouped at the specified \code{precision}.
}
\description{
This is a iso-year-week-day method for the \code{\link[=calendar_group]{calendar_group()}} generic.
Grouping for a iso-year-week-day object can be done at any precision, as
long as \code{x} is at least as precise as \code{precision}.
}
\examples{
x <- iso_year_week_day(2019, 1:52)
# Group by 3 ISO weeks
calendar_group(x, "week", n = 3)
y <- iso_year_week_day(2000:2020, 1, 1)
# Group by 2 ISO years
calendar_group(y, "year", n = 2)
}
|