Package: timeperiodsR 0.7.3

timeperiodsR: Simple Definition Of Time Intervals

Simple definition of time intervals for the current, previous, and next week, month, quarter and year.

Authors:Alexey Seleznev [aut, cre]

timeperiodsR_0.7.3.tar.gz
timeperiodsR_0.7.3.zip(r-4.5)timeperiodsR_0.7.3.zip(r-4.4)timeperiodsR_0.7.3.zip(r-4.3)
timeperiodsR_0.7.3.tgz(r-4.4-any)timeperiodsR_0.7.3.tgz(r-4.3-any)
timeperiodsR_0.7.3.tar.gz(r-4.5-noble)timeperiodsR_0.7.3.tar.gz(r-4.4-noble)
timeperiodsR_0.7.3.tgz(r-4.4-emscripten)timeperiodsR_0.7.3.tgz(r-4.3-emscripten)
timeperiodsR.pdf |timeperiodsR.html
timeperiodsR/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/selesnow/timeperiodsr/issues

On CRAN:

38 exports 6 stars 1.27 score 4 dependencies 11 scripts 330 downloads

Last updated 8 months agofrom:3ea59abcad. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 20 2024
R-4.5-winOKAug 20 2024
R-4.5-linuxOKAug 20 2024
R-4.4-winOKAug 20 2024
R-4.4-macOKAug 20 2024
R-4.3-winOKAug 20 2024
R-4.3-macOKAug 20 2024

Exports:%.in%%left_in%%left_out%%right_in%%right_out%as_timeperiodcheck_dayoffscustom_periodfirst_weekendfirst_workdaylast_n_dayslast_n_monthslast_n_quarterslast_n_weekslast_n_yearslast_weekendlast_workdaynext_monthnext_n_daysnext_n_monthsnext_n_quartersnext_n_weeksnext_n_yearsnext_quarternext_weeknext_yearprevious_monthprevious_quarterprevious_weekprevious_yearthis_monththis_quarterthis_weekthis_yearweekendsweekends_lengthworkdaysworkdays_length

Dependencies:cpp11genericslubridatetimechange

Intro to timeperiodsR

Rendered fromtpr_intro.Rmdusingknitr::rmarkdownon Aug 20 2024.

Last update: 2020-01-08
Started: 2019-09-16

Readme and manuals

Help Manual

Help pageTopics
Simple Definition Of Time IntervalstimeperiodsR-package timeperiodsR
Convert date or string vector to timeperiod.as_timeperiod
Check if the day is an official day offcheck_dayoffs
Custopm periodcustom_period
Get first weekend day in period.first_weekend
Get first workday day in period.first_workday
Start and end of last n dayslast_n_days
Start and end of last n monthslast_n_months
Start and end of last n quarterslast_n_quarters
Start and end of last n weekslast_n_weeks
Start and end of last n yearslast_n_years
Get last weekend day in period.last_weekend
Get last workday day in period.last_workday
Start and end of next monthnext_month
Start and end of next n daysnext_n_days
Start and end of next n monthsnext_n_months
Start and end of next n quartersnext_n_quarters
Start and end of next n weeksnext_n_weeks
Start and end of next n weeksnext_n_years
Start and end of next quarternext_quarter
Start and end of next weeknext_week
Start and end of next yearnext_year
Start and end of previous monthprevious_month
Start and end of previous quarterprevious_quarter
Start and end of previous weekprevious_week
Start and end of previous yearprevious_year
Start and end of monththis_month
Start and end of quarterthis_quarter
Start and end of weekthis_week
Start and end of yearthis_year
Operators of tpr objects.%.in% %left_in% %left_out% %right_in% %right_out%
Get vector with weekends.weekends
Number of weekdends days in the period.weekends_length
Get vector with workdays.workdays
Number of workdays in the period.workdays_length