Package: dint 2.1.5
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:
dint_2.1.5.tar.gz
dint_2.1.5.zip(r-4.5)dint_2.1.5.zip(r-4.4)dint_2.1.5.zip(r-4.3)
dint_2.1.5.tgz(r-4.4-any)dint_2.1.5.tgz(r-4.3-any)
dint_2.1.5.tar.gz(r-4.5-noble)dint_2.1.5.tar.gz(r-4.4-noble)
dint_2.1.5.tgz(r-4.4-emscripten)dint_2.1.5.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')) |
Bug tracker:https://github.com/s-fleck/dint/issues
datedatesmonthperiodquarterweek
Last updated 3 days agofrom:0920406136. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 20 2024 |
R-4.5-win | OK | Nov 20 2024 |
R-4.5-linux | OK | Nov 20 2024 |
R-4.4-win | OK | Nov 20 2024 |
R-4.4-mac | OK | Nov 20 2024 |
R-4.3-win | OK | Nov 20 2024 |
R-4.3-mac | OK | Nov 20 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_yearincrementis_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:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
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 objects | as_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 Types | as.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 Objects | c.date_xx |
A Superclass For All dint Objects | date_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 Vectors | date_xx_breaks date_ym_breaks date_yq_breaks date_yw_breaks |
date_xx Sequence Generation | date_xx_sequences seq.date_ym seq.date_yq seq.date_yw |
A Simple S3-Class for Years | as_date_y date_y is_date_y |
A Simple S3-Class for Year-Month Dates | as_date_ym date_ym is_date_ym |
A Simple S3-Class for Year-Quarter Dates | as_date_yq date_yq is_date_yq |
A Simple S3-Class for Year-Isoweek Dates | as_date_yw date_yw is_date_yw |
Get First / Last Day of an Isoweek | first_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 Year | first_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 Month | first_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 Quarter | first_of_quarter first_of_quarter.default last_of_quarter last_of_quarter.default |
Get First / Last Day of a Year | first_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 Quarter | first_of_yq last_of_yq |
Format a date_xx | format.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 Strings | format_ym |
Coerce and Format to Year-Quarter Strings | format_yq |
Coerce and Format to Year-Isoweek Strings | format_yw |
Get Year, Quarter, Month or Isoweek | get_isoweek get_isoyear get_month get_quarter get_year |
Increment date_xx objects | increment increment.date_y increment.date_ym increment.date_yq increment.date_yw |
Useful Predicates for Dates | is_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_xx | Ops.date_xx |
Print a date_xx Object | print.date_xx |
Replicate Elements of date_xx Vectors | rep.date_xx |
Rounding of date_xx | ceiling.date_xx floor.date_xx round.date_ym round.date_yq round.date_yw |
ggplot2 Scales For date_xx Objects | scale_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_xx | Summary.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 Components | my qy ym yq |