isoYearWeek: isoYearWeek

View source: R/utilsDate.R

isoYearWeekR Documentation

isoYearWeek

Description

Returns the ISO year and week in character string format (e.g., 2020w03) of a date object

Usage

isoYearWeek(date, weekformat = NULL)

Arguments

date

A date Value

weekformat

A string to represent the week separator. Default is "w". May be one or more characters (eg : "-W")

Value

The iso year week of the Date in YYYYwXX format (2020w03)

See Also

isoYear(), isoWeek(), lpad() and base::format()

Examples

isoYearWeek(Sys.Date())
isoYearWeek(as.Date("2020-12-31"))


Epiconcept-Paris/STRAP-epiuf documentation built on Aug. 5, 2024, 3:41 a.m.