Maxima and Minima for date_xx

# S3 method for date_xx
Summary(..., na.rm)

Arguments

...

date_xx vectors with the same subclass

na.rm

logical: should missing values be removed?

Value

for min() and max() a scalar of the same date_xx subclass as it's input, for range a vector of length 2

Examples

min(date_yq(2014, 1), date_yq(2014, 2))
#> [1] "2014-Q1"
# raises an error try(min(date_yq(2014, 1), date_ym(2014, 2)))
#> Error : All inputs must have the same <date_xx> subclass