Changelog
Source:NEWS.md
parttime 0.1.1
CRAN release: 2023-03-08
- Update formals for
vctrs
generic methods to reflect changes in thevctrs
package.
parttime 0.1.0
CRAN release: 2022-11-04
Reworked
pmax
andpmin
handling to address edge case failure modes. Performance may be impacted. If you identify performance regressions that impact your work, please file a ticket. (#35, @dgkf)Renamed
parse_iso8601
toparse_iso8601_datetime
to prepare for introduction of an alternative parser for iso8601 timespans. (#38, @dgkf)New format added for CDISC-style datetime strings. Can be used via
as.parttime(..., format = parse_cdisc_datetime)
. (#38, @dgkf)as.parttime
will now, by default, show warnings when some strings fail to parse into the provided format. Behavior can be configured using the newon.na
parameter. (#36, @dgkf)extends
lubridate
-style accessor and assignment helpers, such asyear()
andyear()<-
. Unfortuntely, many are provided as S4 generics, and may be masked by other packages that extend these generics. Some generic-like functions are provided only as non-generic forms inlubridate
and will always be masked, such astz()
. (#14, @dgkf).added
format
parameter toas.parttime
, allowing for custom regular expressions or functions to be used to parse non-iso formats. If other established standards are regularly needeed, they could be included with the package. (#13, @dgkf)added
res
(“resolution”) parameter to theimpute_*
family of functions, allowing for only some field up until the provided resolution to be imputed. With this, also addedimpute_date_*
alternatives which default to imputing to a"day"
resolution. (#12, @dgkf)rename
is_partial_*
tohas_partial_*
to avoid ambiguity with class checksremoved some deprecated
pillar
interfacesbring package up-to-speed with
vctrs
package changes from last few yearsfixed subset assignment operators [<- and [[<-
improved imputation as to not introduce dates that aren’t viable for the given month