round_na.interp | R Documentation |
Wraps round
around forecast::na.interp
to provide a rounded interpolated series, which is then enforced to be greater than or equal to a minimum value (default min_val = 0
) via pmax
.
round_na.interp(
x,
lambda = NULL,
linear = (frequency(x) <= 1 | sum(!is.na(x)) <= 2 * frequency(x)),
digits = 0,
min_val = 0
)
x |
A time series passed directly to |
lambda |
Box-Cox transformation parameter passed directly to |
linear |
|
digits |
|
min_val |
|
numeric
series.
Other utilities:
file_ext()
,
foy()
,
ifnull()
,
messages
,
named_null_list()
,
package_version_finder()
,
update_list()
round_na.interp(x = c(1, 2, 3, NA, NA, 170))
round_na.interp(x = c(-1, 2, 3, NA, NA, 170), min_val = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.