Description Usage Arguments Value Examples
This helper functions checks if a given window width is valid. It allows to streamline the argument checking inside of generic_C_interface
, rolling_apply
, and similar functions.
1 2 | check_window_width(width, des = "rolling window width",
require_positive = TRUE)
|
width |
a non-negative, finite |
des |
a description of the argument that is being checked. |
require_positive |
logical. Whether |
This function does not return a value. It executes successfully if its argument is a valid window width, and stops with an error message otherwise.
1 | check_window_width(ddays(1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.