utility_funs | R Documentation |
Set of simple utility functions for common use.
any0(...)
all0(...)
x %||% y
is_wholenum(a)
brackets(a, type = c("smooth", "square", "squiggly"))
... |
logical expression passed to |
x |
vector/list to check for |
y |
value to replace |
a |
numeric vector |
type |
string. type of bracket to use. Defaults to "smooth". |
any0()
: wrapper for any()
with na.rm = TRUE
all0()
: wrapper for all()
with na.rm = TRUE
x %||% y
: replace NULL
with default value
is_wholenum()
: check if values are whole numbers
brackets()
: enclose string in brackets.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.