A year entry of a dictionary is a weft_year: an integer with a class, so
that it keeps its place through c(), [, [[, rev(), sort(),
unique(), min(), max(), range() and seq(), and year + n and
year - n are years. year - year and every other arithmetic give a plain
number, and a comparison works as it does on integers. as.integer(),
as.numeric(), format() and print() show the bare integer. Every number
and wording class (.num, .ord, .and, .range and the rest) prints a
year with no thousands mark.
Usage
# S3 method for class 'weft_year'
c(...)
# S3 method for class 'weft_year'
x[...]
# S3 method for class 'weft_year'
x[[...]]
# S3 method for class 'weft_year'
rev(x)
# S3 method for class 'weft_year'
sort(x, decreasing = FALSE, ...)
# S3 method for class 'weft_year'
unique(x, incomparables = FALSE, ...)
# S3 method for class 'weft_year'
seq(from, ...)
# S3 method for class 'weft_year'
Summary(..., na.rm = FALSE)
# S3 method for class 'weft_year'
Ops(e1, e2)
# S3 method for class 'weft_year'
Math(x, ...)
# S3 method for class 'weft_year'
format(x, ...)
# S3 method for class 'weft_year'
print(x, ...)