YYYY: Typically we should call 'YYYY()' rather than 'new_YYYY()'.

View source: R/YYYY.R

YYYYR Documentation

Typically we should call 'YYYY()' rather than 'new_YYYY()'.

Description

Typically we should call 'YYYY()' rather than 'new_YYYY()'.

Usage

YYYY(
  x = character(),
  ...,
  prefix = NULL,
  pattern = "^([CRPB]Y)?([0-9]{4})$",
  verbose = getOption("verbose", default = FALSE)
)

RY(x = character(), ...)

PY(x = character(), ...)

BY(x = character(), ...)

CY(x = character(), ...)

Arguments

x

four-character year, like "2014"

...

concatenated with 'x'

prefix

two-character prefix, like "RY" or "CY"

pattern

'x' (and '...', if supplied) need to match this

verbose

logical

Functions

  • RY: shortcut for 'YYYY(..., prefix = "RY")'

  • PY: shortcut for 'YYYY(..., prefix = "PY")'

  • BY: shortcut for 'YYYY(..., prefix = "BY")'

  • CY: shortcut for 'YYYY(..., prefix = "CY")'


BAAQMD/yeartools documentation built on April 1, 2022, 12:24 a.m.