Package: timeplyr 0.9.0

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.tar.gz
timeplyr_0.9.0.zip(r-4.5)timeplyr_0.9.0.zip(r-4.4)timeplyr_0.9.0.zip(r-4.3)
timeplyr_0.9.0.tgz(r-4.4-x86_64)timeplyr_0.9.0.tgz(r-4.4-arm64)timeplyr_0.9.0.tgz(r-4.3-x86_64)timeplyr_0.9.0.tgz(r-4.3-arm64)
timeplyr_0.9.0.tar.gz(r-4.5-noble)timeplyr_0.9.0.tar.gz(r-4.4-noble)
timeplyr_0.9.0.tgz(r-4.4-emscripten)timeplyr_0.9.0.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:

7.27 score 37 stars 286 scripts 480 downloads 121 exports 42 dependencies

Last updated 2 days agofrom:7c6b481abc. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-win-x86_64OKNov 20 2024
R-4.5-linux-x86_64OKNov 20 2024
R-4.4-win-x86_64OKNov 20 2024
R-4.4-mac-x86_64OKNov 20 2024
R-4.4-mac-aarch64OKNov 20 2024
R-4.3-win-x86_64OKNov 20 2024
R-4.3-mac-x86_64OKNov 20 2024
R-4.3-mac-aarch64OKNov 20 2024

Exports:.duration_units.extra_time_units.period_units.roll_na_fill.stat_fns.time_unitsadd_group_idadd_group_orderadd_row_idage_monthsage_yearsasccalendarcrossed_joindecimal_year_monthdecimal_year_quarterdescdiff_duplicate_rowsedffadd_countfarrangefcompletefcountfdistinctfexpandfgroup_byfrenamefrowidfselectfslicefslice_headfslice_maxfslice_minfslice_samplefslice_tailget_time_delaygroup_collapsegroup_idgroup_ordergrowthgrowth_rateinterval_countinterval_endinterval_lengthinterval_rangeinterval_startis_dateis_datetimeis_timeis_time_intervalis_time_or_numis_whole_numberiso_weekisodaymissing_datesn_missing_datesq_summarisereset_timeplyr_optionsroll_diffroll_geometric_meanroll_growth_rateroll_harmonic_meanroll_lagroll_meanroll_na_fillroll_sumrolling_growthrow_idscale_x_year_monthscale_x_year_quarterscale_y_year_monthscale_y_year_quarterstat_summarisetime_aggregatetime_breakstime_bytime_by_spantime_by_unitstime_by_vartime_completetime_completevtime_countvtime_cuttime_difftime_elapsedtime_episodestime_expandtime_expandvtime_gapstime_gcd_difftime_ggplottime_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_spantime_span_sizetime_summarisevtransform_year_monthtransform_year_quarterts_as_tibbleunit_guessyear_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
These functions have been superseded by fastplyr functionsasc desc
Create a table of common time units from a date or datetime sequence.calendar
These functions have been superseded by fastplyr functionscrossed_join
These functions have been superseded by fastplyr functionsduplicate_rows
Grouped empirical cumulative distribution function applied to dataedf
These functions have been superseded by fastplyr functionsfarrange
These functions have been superseded by fastplyr functionsfadd_count fcount
These functions have been superseded by fastplyr functionsfdistinct
These functions have been superseded by fastplyr functionsfcomplete fexpand
These functions have been superseded by fastplyr functionsfgroup_by
These functions have been superseded by fastplyr functionsfrowid
These functions have been superseded by fastplyr functionsfrename fselect
These functions have been superseded by fastplyr functionsfslice fslice_head fslice_max fslice_min fslice_sample fslice_tail
Get summary statistics of time delayget_time_delay
These functions have been superseded by fastplyr functionsgroup_collapse
These functions have been superseded by fastplyr functionsadd_group_id add_group_order add_row_id group_id group_order row_id
Rolling basic growthgrowth rolling_growth
Fast Growth Ratesgrowth_rate
Time interval utilitiesinterval_count interval_end interval_length interval_range interval_start
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
Fast grouped quantile summaryq_summarise
Reset 'timeplyr' optionsreset_timeplyr_options
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' fill.roll_na_fill roll_na_fill
Fast by-group rolling functionsroll_geometric_mean roll_growth_rate roll_harmonic_mean roll_mean roll_sum
These functions have been superseded by fastplyr functions.stat_fns stat_summarise
Aggregate time to a higher unittime_aggregate
Group by a time variable at a higher time unittime_by time_by_span time_by_units time_by_var
Cut dates and datetimes into regularly spaced date or datetime intervalstime_breaks time_cut
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
Vector date and datetime functionstime_completev time_countv time_expandv time_span time_span_size time_summarisev
Gaps in a regular time sequencetime_gaps time_has_gaps time_num_gaps
Fast greatest common divisor of time differencestime_gcd_diff
Quick time-series ggplottime_ggplot
Time IDtime_id
S3-based Time Intervals (Currently very experimental and so subject to change)is_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
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_tibble ts_as_tibble.default ts_as_tibble.mts ts_as_tibble.timeSeries ts_as_tibble.xts ts_as_tibble.zoo
Guess time unit and extract basic information.unit_guess
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