is.isoweek: Are values valid ISO weeks?

View source: R/isoweekStart.R

is.isoweekR Documentation

Are values valid ISO weeks?

Description

Take a numeric vector and return TRUE if values are valid ISO week numbers (of the form YYYYWW), or FALSE otherwise.

Usage

is.isoweek(x)

Arguments

x

A numeric vector of ISO week numbers (of format YYYYWW)

Value

A logical vector of the same length as x

Examples

is.isoweek(c(202053, 202153))  # returns c(TRUE, FALSE)


thlytras/Rivets documentation built on April 16, 2024, 5:43 a.m.