Package: dint 2.1.4

dint: A Toolkit for Year-Quarter, Year-Month and Year-Isoweek Dates

S3 classes and methods to create and work with year-quarter, year-month and year-isoweek vectors. Basic arithmetic operations (such as adding and subtracting) are supported, as well as formatting and converting to and from standard R date types.

Authors:Stefan Fleck [aut, cre]

dint_2.1.4.tar.gz
dint_2.1.4.zip(r-4.5)dint_2.1.4.zip(r-4.4)dint_2.1.4.zip(r-4.3)
dint_2.1.4.tgz(r-4.4-any)dint_2.1.4.tgz(r-4.3-any)
dint_2.1.4.tar.gz(r-4.5-noble)dint_2.1.4.tar.gz(r-4.4-noble)
dint_2.1.4.tgz(r-4.4-emscripten)dint_2.1.4.tgz(r-4.3-emscripten)
dint.pdf |dint.html
dint/json (API)
NEWS

# Install 'dint' in R:
install.packages('dint', repos = c('https://s-fleck.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/s-fleck/dint/issues

On CRAN:

datedatesmonthperiodquarterweek

6.09 score 14 stars 1 packages 58 scripts 617 downloads 77 exports 0 dependencies

Last updated 2 years agofrom:16925fe23c. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 18 2024
R-4.5-winOKOct 18 2024
R-4.5-linuxOKOct 18 2024
R-4.4-winOKOct 18 2024
R-4.4-macOKOct 18 2024
R-4.3-winOKOct 18 2024
R-4.3-macOKOct 18 2024

Exports:%y-%%y+%as_date_yas_date_ymas_date_yqas_date_ywas_yearmonas_yearqtras_yearweekdate_ydate_ymdate_ym_breaksdate_yqdate_yq_breaksdate_ywdate_yw_breaksfirst_of_isoweekfirst_of_isoyearfirst_of_monthfirst_of_quarterfirst_of_yearfirst_of_ymfirst_of_yqfirst_of_ywformat_date_xxformat_ymformat_ym_isoformat_ym_shortformat_ym_shorterformat_yqformat_yq_isoformat_yq_shortformat_yq_shorterformat_ywformat_yw_isoformat_yw_shortformat_yw_shorterget_isoweekget_isoyearget_monthget_quarterget_yearis_Dateis_date_xxis_date_yis_date_ymis_date_yqis_date_ywis_first_of_quarteris_first_of_yearis_last_of_quarteris_last_of_yearis_POSIXltis_quarter_boundsis_year_boundslast_of_isoweeklast_of_isoyearlast_of_monthlast_of_quarterlast_of_yearlast_of_ymlast_of_yqlast_of_ywmake_date_xxmyqyscale_x_date_ymscale_x_date_yqscale_x_date_ywscale_y_date_ymscale_y_date_yqscale_y_date_ywSys.date_ymSys.date_yqSys.date_ywymyq

Dependencies:

Dint: Integer Representations of Calendar Periods

Rendered fromdint.Rmdusingknitr::rmarkdownon Oct 18 2024.

Last update: 2020-02-06
Started: 2018-05-23

Readme and manuals

Help Manual

Help pageTopics
Extract or Replace Elements of a date_xx[.date_xx [<-.date_ym [<-.date_yq [<-.date_yw [[.date_xx [[<-.date_ym [[<-.date_yq [[<-.date_yw
Add/Subtract Year%y+% %y+%.date_y %y+%.date_ym %y+%.date_yq %y+%.date_yw %y-% %y-%.date_y %y-%.date_ym %y-%.date_yq %y-%.date_yw
Coerce to zoo yearqtr objectsas_yearmon as_yearmon.date_ym as_yearmon.yearmon as_yearqtr as_yearqtr.date_yq as_yearqtr.yearqtr as_yearweek as_yearweek.date_yw as_yearweek.yearweek
Coerce dint Objects to Base R Date Typesas.Date.date_xx as.Date.date_y as.Date.date_ym as.Date.date_yq as.Date.date_yw as.POSIXct.date_xx as.POSIXlt.date_xx Sys.date_ym Sys.date_yq Sys.date_yw
Concatenate date_xx Objectsc.date_xx
A Superclass For All dint Objectsdate_xx is_date_xx make_date_xx
date_xx Arithmetic Operations+.date_xx -.date_xx date_xx_arithmetic
Arithmetic Operations Disabled for date_xx%%.date_xx %%.date_y %/%.date_xx %/%.date_y *.date_xx /.date_xx date_xx_arithmetic_disabled ^.date_xx
Pretty Breaks For date_xx Vectorsdate_xx_breaks date_ym_breaks date_yq_breaks date_yw_breaks
date_xx Sequence Generationdate_xx_sequences seq.date_ym seq.date_yq seq.date_yw
A Simple S3-Class for Yearsas_date_y date_y is_date_y
A Simple S3-Class for Year-Month Datesas_date_ym date_ym is_date_ym
A Simple S3-Class for Year-Quarter Datesas_date_yq date_yq is_date_yq
A Simple S3-Class for Year-Isoweek Datesas_date_yw date_yw is_date_yw
Get First / Last Day of an Isoweekfirst_of_isoweek first_of_isoweek.default first_of_yw last_of_isoweek last_of_isoweek.default last_of_yw
Get First / Last Day of the First and Last Isoweek of a Yearfirst_of_isoyear first_of_isoyear.date_yw first_of_isoyear.default first_of_isoyear.integer first_of_isoyear.numeric last_of_isoyear last_of_isoyear.date_yw last_of_isoyear.default last_of_isoyear.integer last_of_isoyear.numeric
Get First / Last Day of a Monthfirst_of_month first_of_month.default first_of_ym last_of_month last_of_month.default last_of_ym
Get First / Last Day of a Quarterfirst_of_quarter first_of_quarter.default last_of_quarter last_of_quarter.default
Get First / Last Day of a Yearfirst_of_year first_of_year.date_xx first_of_year.default first_of_year.integer first_of_year.numeric last_of_year last_of_year.date_xx last_of_year.default last_of_year.integer last_of_year.numeric
Get First or Last Day of Quarter From Year and Quarterfirst_of_yq last_of_yq
Format a date_xxformat.date_y format.date_ym format.date_yq format.date_yw format_date_xx format_ym_iso format_ym_short format_ym_shorter format_yq_iso format_yq_short format_yq_shorter format_yw_iso format_yw_short format_yw_shorter
Coerce and Format to Year-Month Stringsformat_ym
Coerce and Format to Year-Quarter Stringsformat_yq
Coerce and Format to Year-Isoweek Stringsformat_yw
Get Year, Quarter, Month or Isoweekget_isoweek get_isoyear get_month get_quarter get_year
Useful Predicates for Datesis_Date is_first_of_quarter is_first_of_year is_last_of_quarter is_last_of_year is_POSIXlt is_quarter_bounds is_year_bounds
Comparison Operators for date_xxOps.date_xx
Print a date_xx Objectprint.date_xx
Replicate Elements of date_xx Vectorsrep.date_xx
Rounding of date_xxceiling.date_xx floor.date_xx round.date_ym round.date_yq round.date_yw
ggplot2 Scales For date_xx Objectsscale_date_xx scale_x_date_ym scale_x_date_yq scale_x_date_yw scale_y_date_ym scale_y_date_yq scale_y_date_yw
Maxima and Minima for date_xxSummary.date_xx
Get Year, Quarter or Month (lubridate Compatibility)isoweek.date_xx month month.date_xx year year.date_xx
Parse Dates With Year and Quarter Componentsmy qy ym yq