Package: timeplyr 0.9.0.9000

Nick Christofides

timeplyr: Fast Tidy Tools for Date and Date-Time Manipulation

A set of fast tidy functions for wrangling, completing and summarising date and date-time data. It combines 'tidyverse' syntax with the efficiency of 'data.table' and speed of 'collapse'.

Authors:Nick Christofides [aut, cre]

timeplyr_0.9.0.9000.tar.gz
timeplyr_0.9.0.9000.zip(r-4.5)timeplyr_0.9.0.9000.zip(r-4.4)timeplyr_0.9.0.9000.zip(r-4.3)
timeplyr_0.9.0.9000.tgz(r-4.4-x86_64)timeplyr_0.9.0.9000.tgz(r-4.4-arm64)timeplyr_0.9.0.9000.tgz(r-4.3-x86_64)timeplyr_0.9.0.9000.tgz(r-4.3-arm64)
timeplyr_0.9.0.9000.tar.gz(r-4.5-noble)timeplyr_0.9.0.9000.tar.gz(r-4.4-noble)
timeplyr_0.9.0.9000.tgz(r-4.4-emscripten)timeplyr_0.9.0.9000.tgz(r-4.3-emscripten)
timeplyr.pdf |timeplyr.html
timeplyr/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/nicchr/timeplyr/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

cpp

7.17 score 37 stars 258 scripts 454 downloads 91 exports 42 dependencies

Last updated 3 days agofrom:5bebe5872c. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 18 2025
R-4.5-win-x86_64OKJan 18 2025
R-4.5-linux-x86_64OKJan 18 2025
R-4.4-win-x86_64OKJan 18 2025
R-4.4-mac-x86_64OKJan 18 2025
R-4.4-mac-aarch64OKJan 18 2025
R-4.3-win-x86_64OKJan 18 2025
R-4.3-mac-x86_64OKJan 18 2025
R-4.3-mac-aarch64OKJan 18 2025

Exports:.duration_units.extra_time_units.period_units.time_unitsage_monthsage_yearscalendardecimal_year_monthdecimal_year_quarterdiff_get_time_delaygranularitygrowthgrowth_rateinterval_countinterval_endinterval_rangeinterval_startinterval_widthis_dateis_datetimeis_timeis_time_intervalis_time_or_numis_timespanis_whole_numberiso_weekisodaymissing_datesn_missing_datesnew_time_intervalnew_timespanreset_timeplyr_optionsresolutionroll_diffroll_geometric_meanroll_growth_rateroll_harmonic_meanroll_lagroll_meanroll_na_fillroll_sumrolling_growthscale_x_year_monthscale_x_year_quarterscale_y_year_monthscale_y_year_quartertime_breakstime_bytime_completetime_complete_missingtime_cuttime_cut_ntime_cut_widthtime_difftime_elapsedtime_episodestime_expandtime_gapstime_ggplottime_gridtime_grid_sizetime_has_gapstime_idtime_intervaltime_is_regulartime_num_gapstime_roll_applytime_roll_growth_ratetime_roll_meantime_roll_sumtime_roll_windowtime_roll_window_sizetime_seqtime_seq_idtime_seq_sizestime_seq_vtime_seq_v2time_tbl_time_coltimespantimespan_numtimespan_unittransform_year_monthtransform_year_quarterts_as_tblyear_monthyear_month_decimalyear_quarteryear_quarter_decimalYMYQ

Dependencies:cheaprclicollapsecolorspacecpp11cppdoublesdata.tabledplyrfansifarverfastplyrgenericsggplot2gluegtableisobandlabelinglatticelifecyclelubridatemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerRcpprlangscalesstringistringrtibbletidyselecttimechangeutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
timeplyr: Fast Tidy Tools for Date and Date-Time Manipulationtimeplyr-package timeplyr
Time units.duration_units .extra_time_units .period_units .time_units
Accurate and efficient age calculationage_months age_years
Create a table of common time units from a date or datetime sequence.calendar
Get summary statistics of time delayget_time_delay
Rolling basic growthgrowth rolling_growth
Fast Growth Ratesgrowth_rate
Utility functions for checking if date or datetimeis_date is_datetime is_time is_time_or_num
Are all numbers whole numbers?is_whole_number
Efficient, simple and flexible ISO week calculationisoday iso_week
Check for missing dates between first and last datemissing_dates n_missing_dates
Reset 'timeplyr' optionsreset_timeplyr_options
Time resolution & granularitygranularity resolution
Fast rolling grouped lags and differencesdiff_ roll_diff roll_diff.default roll_diff.ts roll_diff.zoo roll_lag roll_lag.default roll_lag.ts roll_lag.zoo
Fast grouped "locf" 'NA' fillroll_na_fill
Fast by-group rolling functionsroll_geometric_mean roll_growth_rate roll_harmonic_mean roll_mean roll_sum
Group by a time variable at a higher time unittime_by time_tbl_time_col
Cut dates and datetimes into regularly spaced date or datetime intervalstime_breaks time_cut time_cut_n time_cut_width
Time differences by any time unittime_diff
Fast grouped time elapsedtime_elapsed
Episodic calculation of time-since-event datatime_episodes
A time based extension to 'tidyr::complete()'.time_complete time_expand
Gaps in a regular time sequencetime_gaps time_has_gaps time_num_gaps
Quick time-series ggplottime_ggplot
Vector date and datetime functionstime_complete_missing time_grid time_grid_size
Time IDtime_id
S3-based Time Intervals (Currently very experimental and so subject to change)interval_count interval_end interval_range interval_start interval_width is_time_interval new_time_interval time_interval
Is time a regular sequence? (Experimental)time_is_regular
Fast time-based by-group rolling sum/mean - Currently experimentaltime_roll_apply time_roll_growth_rate time_roll_mean time_roll_sum time_roll_window time_roll_window_size
Time based version of 'base::seq()'time_seq time_seq_sizes time_seq_v time_seq_v2
Generate a unique identifier for a regular time sequence with gapstime_seq_id
Timespansis_timespan new_timespan timespan timespan_num timespan_unit
Additional ggplot2 scalesscale_x_year_month scale_x_year_quarter scale_y_year_month scale_y_year_quarter transform_year_month transform_year_quarter
Turn 'ts' into a 'tibble'ts_as_tbl ts_as_tbl.default ts_as_tbl.mts ts_as_tbl.timeSeries ts_as_tbl.xts ts_as_tbl.zoo
Fast methods for creating year-months and year-quartersdecimal_year_month decimal_year_quarter year_month year_month_decimal year_quarter year_quarter_decimal YM YQ