date_to_isoweek_n {cstime}R Documentation

ISO week (numeric) from Date object

Description

ISO week (numeric) from Date object

Usage

date_to_isoweek_n(x = lubridate::today())

## Default S3 method:
date_to_isoweek_n(x)

## S3 method for class 'character'
date_to_isoweek_n(x = lubridate::today())

## S3 method for class 'Date'
date_to_isoweek_n(x = lubridate::today())

Arguments

x

a Date object or string, in the form of 'yyyy-mm-dd'

Value

ISO week in numeric

Examples

date_to_isoweek_n("2021-08-11")
date_to_isoweek_n(lubridate::today())

[Package cstime version 2023.5.3 Index]