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

7.31 score 37 stars 307 scripts 404 downloads 123 exports 41 dependencies

Last updated 3 months agofrom:bdfaaf76d3. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 18 2024
R-4.5-win-x86_64OKOct 18 2024
R-4.5-linux-x86_64OKOct 18 2024
R-4.4-win-x86_64OKOct 18 2024
R-4.4-mac-x86_64OKOct 18 2024
R-4.4-mac-aarch64OKOct 18 2024
R-4.3-win-x86_64OKOct 18 2024
R-4.3-mac-x86_64OKOct 18 2024
R-4.3-mac-aarch64OKOct 18 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_counttime_countvtime_cuttime_cut_widthtime_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.tabledplyrfansifarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclelubridatemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerRcpprlangscalesstringistringrtibbletidyselecttimechangeutf8vctrsviridisLitewithr

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
Helpers to sort variables in ascending or descending orderasc desc
Create a table of common time units from a date or datetime sequence.calendar
A 'do.call()' and 'data.table::CJ()' methodcrossed_join
Find duplicate rowsduplicate_rows
Grouped empirical cumulative distribution function applied to dataedf
A 'collapse' version of 'dplyr::arrange()'farrange
A fast replacement to dplyr::count()fadd_count fcount
Find distinct rowsfdistinct
Fast versions of 'tidyr::expand()' and 'tidyr::complete()'.fcomplete fexpand
'collapse' version of 'dplyr::group_by()'fgroup_by
Fast grouped row numbersfrowid
Fast 'dplyr::select()'/'dplyr::rename()'frename fselect
Faster 'dplyr::slice()'fslice fslice_head fslice_max fslice_min fslice_sample fslice_tail
Get summary statistics of time delayget_time_delay
Key group informationgroup_collapse
Fast group IDsadd_group_id add_group_order add_row_id group_id group_order row_id row_id.GRP
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
Fast grouped statistical summary for data frames..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
'time_count' is deprecatedtime_count
Cut dates and datetimes into regularly spaced date or datetime intervalstime_breaks time_cut 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
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