Movatterモバイル変換


[0]ホーム

URL:


dint2.1.3.9001

A Simple S3-Class for Years

Source:R/date_y.R
date_y.Rd

A simple data type for storing years. Adate_y object is just aninteger with an additional class attribute.

date_y(y)is_date_y(x)as_date_y(x)

Arguments

y

year

x

any R object

Value

date_y returns an object of typedate_y

is_date_y returnsTRUE orFALSE depending on whether itsargument is of typedate_y or not.

as_date_m attempts to coerce its argument todate_y type

See also

Other date_xx subclasses:date_ym(),date_yq(),date_yw()

Examples

date_y(2013)
#> [1] "2013"
as_date_y(2016)
#> [1] "2016"

[8]ページ先頭

©2009-2025 Movatter.jp