timeplyr 1.0.0
Major breaking changes
-
Time intervals in timeplyr have been re-imagined.
They are now fixed-width intervals which means any one time interval vector
will have a common width for all intervals it contains, e.g. 1 month.
This makes internal operations much faster and simplifies the logic
for working with these objects. The data structure for these intervals
is a vector of LHS start times with an attribute to specify the
timespan or width of the interval. All intervals remain LHS closed and
RHS open. As a side-note this new data structure makes it possible for
time intervals to be used indata.table. -
Most functions which are not time related have been removed.
-
Many arguments have been renamed or removed.
- This includes the
time_type
argument which is no longer used. When specifying units such as
days, weeks, months or years, exact timespans will be used. - Most functions no longer use the args
roll_dstandroll_monthwith the
exception of the sequence functions. - The
time_byargument has been renamed to eitherwidthortimespan
depending on the context.
- This includes the
-
Functions
time_expandv,time_completev,time_span_sizehave been
renamed totime_grid,time_complete_missing,time_grid_sizerespectively. -
Functions
time_summarisevandtime_aggregatehave been removed, use
time_cut_widthinstead. -
time_cuthas been deprecated and renamed totime_cut_n. -
edf,ascanddeschave been removed as they do not fit the
purpose of the package. -
.roll_na_fillhas been removed.
New features
-
A custom timeplyr object
timespanto create and use
timespans for various operations. -
New functions
resolutionandgranularityto calculate
the resolution and granularity of a time vector respectively.
See the help page?resolutionfor more details.