date_to_isoyear_n: ISO year (numeric) from Date object

View source: R/conversion_date_isoweek_isoyear.R

date_to_isoyear_nR Documentation

ISO year (numeric) from Date object

Description

ISO year (numeric) from Date object

Usage

date_to_isoyear_n(x = lubridate::today())

## Default S3 method:
date_to_isoyear_n(x)

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

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

Arguments

x

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

Value

ISO year in numeric

Examples

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

cstime documentation built on May 31, 2023, 9:27 p.m.