a data.table time-series with the number of
observations in x that fall withing the intervals
defined by the grid interval defined by by.
Arguments
x
the data.table time-series for which to calculate
the frequency
by
interval specified as a nanoduration or
nanoperiod.
grid_start
scalar nanotime defining the start of the
grid; by default the first element of x is taken.
grid_end
scalar nanotime defining the end of the
grid; by default the last element of x is taken.
tz
scalar of type character. Only used when the type of
by and end is nanoperiod. It defines the
time zone for the definition of the interval.
ival_start
scalar of type nanoduration or
nanoperiod; ival_start is added to each element
of the grid and it then defines the starting point of the
interval under consideration for the alignment onto that
element. This defaults to -by and most likely does not
need to be overriden.
ival_end
scalar of type nanoduration or
nanoperiod; ival_end is added to each element of
the grid and it then defines the ending point of the interval
under consideration for the alignment onto that element. This
defaults to 0 and most likely does not need to be overriden.
ival_sopen
boolean scalar that indicates if the start of
the interval is open or closed. Defaults to FALSE.
ival_eopen
boolean scalar that indicates if the end of the
interval is open or closed. Defaults to TRUE.