iso_week {timeplyr} | R Documentation |
Efficient, simple and flexible ISO week calculation
Description
iso_week()
is a flexible function to return formatted
ISO weeks, with optional ISO year and ISO day.
isoday()
returns the day of the ISO week.
Usage
iso_week(x, year = TRUE, day = FALSE)
isoday(x)
Arguments
x |
Date vector. |
year |
Logical. If |
day |
Logical. If |
Value
An ISO week vector of class character
.
Examples
library(timeplyr)
library(lubridate)
iso_week(today())
iso_week(today(), day = TRUE)
iso_week(today(), year = FALSE, day = TRUE)
iso_week(today(), year = FALSE, day = FALSE)
[Package timeplyr version 0.8.1 Index]