Skip to content

Commit f5f5d86

Browse files
committed
doc
1 parent 3e191c0 commit f5f5d86

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: dint
33
Title: A Toolkit for Year-Quarter, Year-Month and Year-Isoweek Dates
4-
Version: 1.0.0.9009
4+
Version: 2.0.0
55
Authors@R: person("Stefan", "Fleck", email = "[email protected]", role = c("aut", "cre"))
66
Maintainer: Stefan Fleck <[email protected]>
77
Description:

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* **breaking**: all `first_day_of_*()` and `format_date_y*()` functions now
88
have shorter names: `first_of_*()` and `format_y*()`. The original names
99
will still work until the next release but give a deprecation warning.
10+
* Added support for `c()`, `min()`, `max()`, `range()`
1011
* You can now direclty supply a numeric year to `first_of_year()` and
1112
`last_of_year()` (e.g. `first_of_year(2018)`)
1213
* added `date_yw` for storing isoweeks and modified existing funtions to

R/arithmetic.R

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22

33
#' Maxima and Minima for date_xx
44
#'
5-
#' @param ... `date_xx` vectors. It is up to the user to ensure that they are
6-
#' of the same subclass.
5+
#' @param ... `date_xx` vectors with the same subclass
76
#' @inheritParams base::Summary
87
#'
98
#' @return
109
#' for `min()` and `max()` a scalar of the same `date_xx` subclass as it's
1110
#' input, for range a vector of length 2
1211
#'
1312
#' @export
13+
#'
14+
#' @examples
15+
#' min(date_yq(2014, 1), date_yq(2014, 2))
16+
#'
17+
#' # raises an error
18+
#' try(min(date_yq(2014, 1), date_ym(2014, 2)))
1419
Summary.date_xx <- function (
1520
...,
1621
na.rm

0 commit comments

Comments
 (0)