Fast Tidy Tools for Date and Date-Time Manipulation


[Up] [Top]

Documentation for package ‘timeplyr’ version 0.5.0

Help Pages

A B C D E F G H I L M N Q R S T U W Y misc

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

-- A --

add_calendar Create a table of common time units from a date or datetime sequence.
add_group_id Fast group IDs
add_group_order Fast group IDs
add_row_id Fast group IDs
age_months Accurate and efficient age calculation
age_years Accurate and efficient age calculation
arithmetic_mean Unweighted & weighted arithmetic, geometric and harmonic mean
asc Helpers to sort variables in ascending or descending order

-- B --

bottom_n Top N most/least frequent values
bottom_n_tbl Top N most/least frequent values

-- C --

calendar Create a table of common time units from a date or datetime sequence.
cpp_which Efficient alternative to 'which()'
crossed_join A 'do.call()' and 'data.table::CJ()' method

-- D --

desc Helpers to sort variables in ascending or descending order
diff_ Fast rolling grouped lags and differences
duplicate_rows Find duplicate rows

-- E --

edf Grouped empirical cumulative distribution function applied to data

-- F --

fadd_count A fast replacement to dplyr::count()
farrange A 'collapse' version of 'dplyr::arrange()'
fcomplete Fast versions of 'tidyr::expand()' and 'tidyr::complete()'.
fcount A fast replacement to dplyr::count()
fcummean Supplementary fast statistical functions, 'collapse' style
fdistinct Find distinct rows
fduplicates Find duplicate rows
fduplicates2 Find duplicate rows
fexpand Fast versions of 'tidyr::expand()' and 'tidyr::complete()'.
fgroup_by 'collapse' version of 'dplyr::group_by()'
fn Supplementary fast statistical functions, 'collapse' style
fnmiss Supplementary fast statistical functions, 'collapse' style
fprop_complete Supplementary fast statistical functions, 'collapse' style
fprop_missing Supplementary fast statistical functions, 'collapse' style
frename Fast 'dplyr::select()'/'dplyr::rename()'
frowid Fast grouped row numbers
fselect Fast 'dplyr::select()'/'dplyr::rename()'
fskim Fast alternative to 'skimr::skim()'
fslice Faster 'dplyr::slice()'
fslice_head Faster 'dplyr::slice()'
fslice_max Faster 'dplyr::slice()'
fslice_min Faster 'dplyr::slice()'
fslice_sample Faster 'dplyr::slice()'
fslice_tail Faster 'dplyr::slice()'

-- G --

gcd Greatest common divisor and smallest common multiple
gcd_diff Greatest common divisor and smallest common multiple
gduplicated Grouped 'unique()', 'sort()' and 'duplicated()'
geometric_mean Unweighted & weighted arithmetic, geometric and harmonic mean
get_time_delay Get summary statistics of time delay
gfirst Grouped statistical functions.
glast Grouped statistical functions.
gmax Grouped statistical functions.
gmean Grouped statistical functions.
gmedian Grouped statistical functions.
gmin Grouped statistical functions.
gmode Grouped statistical functions.
gnobs Grouped statistical functions.
gorder Grouped 'unique()', 'sort()' and 'duplicated()'
groups_equal Are groups equal?
group_collapse Key group information
group_id Fast group IDs
group_order Fast group IDs
growth Rolling basic growth
growth_rate Fast Growth Rates
gsd Grouped statistical functions.
gsort Grouped 'unique()', 'sort()' and 'duplicated()'
gsum Grouped statistical functions.
gunique Grouped 'unique()', 'sort()' and 'duplicated()'
gvar Grouped statistical functions.
gwhich_duplicated Grouped 'unique()', 'sort()' and 'duplicated()'

-- H --

harmonic_mean Unweighted & weighted arithmetic, geometric and harmonic mean

-- I --

isoday Efficient, simple and flexible ISO week calculation
iso_week Efficient, simple and flexible ISO week calculation
is_date Utility functions for checking if date or datetime
is_datetime Utility functions for checking if date or datetime
is_time Utility functions for checking if date or datetime
is_time_or_num Utility functions for checking if date or datetime
is_whole_number Are all numbers whole numbers?

-- L --

lag_ Fast rolling grouped lags and differences
lag_seq Fast rolling grouped lags and differences
lag_sequence Utilities for creating useful sequences
lead_ Fast rolling grouped lags and differences
lead_sequence Utilities for creating useful sequences
lump_bottom_n Top N most/least frequent values
lump_top_n Top N most/least frequent values

-- M --

missing_dates Check for missing dates between first and last date

-- N --

num_na Fast number of missing values
n_missing_dates Check for missing dates between first and last date

-- Q --

q_summarise Fast grouped quantile summary

-- R --

rolling_growth Rolling basic growth
roll_apply By-group rolling functions
roll_diff Fast rolling grouped lags and differences
roll_geometric_mean Fast by-group rolling functions
roll_growth_rate Fast by-group rolling functions
roll_harmonic_mean Fast by-group rolling functions
roll_lag Fast rolling grouped lags and differences
roll_mean Fast by-group rolling functions
roll_na_fill Fast grouped "locf" 'NA' fill
roll_sum Fast by-group rolling functions
row_id Fast group IDs

-- S --

scm Greatest common divisor and smallest common multiple
sequence2 Utilities for creating useful sequences
seq_id Utilities for creating useful sequences
seq_size Utilities for creating useful sequences
seq_v Utilities for creating useful sequences
stat_summarise Fast grouped statistical summary for data frames.

-- T --

timeplyr timeplyr: Fast Tidy Tools for Date and Date-Time Manipulation
time_aggregate Aggregate time to a higher unit
time_breaks Cut dates and datetimes into regularly spaced date or datetime intervals
time_by Group by a time variable at a higher time unit
time_by_span Group by a time variable at a higher time unit
time_by_units Group by a time variable at a higher time unit
time_by_var Group by a time variable at a higher time unit
time_complete A time based extension to 'tidyr::complete()'.
time_completev Vector date and datetime functions
time_count Fast count time at higher time units.
time_countv Vector date and datetime functions
time_cut Cut dates and datetimes into regularly spaced date or datetime intervals
time_diff Time differences by any time unit
time_diff_gcd Fast greatest common divisor of time differences
time_distinct A time based extension to 'dplyr::distinct()'.
time_elapsed Fast grouped time elapsed
time_episodes Episodic calculation of time-since-event data
time_expand A time based extension to 'tidyr::complete()'.
time_expandv Vector date and datetime functions
time_gaps Gaps in a regular time sequence
time_ggplot Quick time-series ggplot
time_has_gaps Gaps in a regular time sequence
time_id Time ID
time_is_regular Is time a regular sequence? (Experimental)
time_lag Time-lagged values
time_mutate A time based extension to 'dplyr::mutate()'.
time_num_gaps Gaps in a regular time sequence
time_roll_apply Fast time-based by-group rolling sum/mean - Currently experimental
time_roll_diff Lagged time differences
time_roll_growth_rate Fast time-based by-group rolling sum/mean - Currently experimental
time_roll_mean Fast time-based by-group rolling sum/mean - Currently experimental
time_roll_sum Fast time-based by-group rolling sum/mean - Currently experimental
time_roll_window Fast time-based by-group rolling sum/mean - Currently experimental
time_roll_window_size Fast time-based by-group rolling sum/mean - Currently experimental
time_seq Time based version of 'base::seq()'
time_seq_id Generate a unique identifier for a regular time sequence with gaps
time_seq_sizes Time based version of 'base::seq()'
time_seq_v Time based version of 'base::seq()'
time_seq_v2 Time based version of 'base::seq()'
time_span Vector date and datetime functions
time_span_size Vector date and datetime functions
time_summarise A time based extension to 'dplyr::summarise()'
time_summarisev Vector date and datetime functions
top_n Top N most/least frequent values
top_n_tbl Top N most/least frequent values
ts_as_tibble Turn 'ts' into a 'tibble'
ts_as_tibble.default Turn 'ts' into a 'tibble'
ts_as_tibble.mts Turn 'ts' into a 'tibble'
ts_as_tibble.timeSeries Turn 'ts' into a 'tibble'
ts_as_tibble.xts Turn 'ts' into a 'tibble'
ts_as_tibble.zoo Turn 'ts' into a 'tibble'

-- U --

unit_guess Guess time unit and extract basic information.

-- W --

window_sequence Utilities for creating useful sequences

-- Y --

year_month Fast methods for creating year-months and year-quarters
year_quarter Fast methods for creating year-months and year-quarters
YM Fast methods for creating year-months and year-quarters
YQ Fast methods for creating year-months and year-quarters

-- misc --

.duration_units Time units
.extra_time_units Time units
.period_units Time units
.roll_na_fill Fast grouped "locf" 'NA' fill
.stat_fns Fast grouped statistical summary for data frames.
.time_units Time units