Generate logarithmically spacing for lags. Note: the number of lags will not exactly equal n unless max_time_lag is large or n is very small

log_lags(n, max_time_lag)

Arguments

n

number of lags (integer)

max_time_lag

maximum lag (integer)

Value

integer vector of lags

Examples

log_lags(12, 86401)
#> [1] 0 2 7 21 61 174 492 1384 3891 10938 30742 86400