# FROST INFIX OPERATOR ----
# Create an infix operator for the `frost_csl()` function
`%||%` <- function(lhs, rhs) {
if (!is.null(lhs)) rhs
else lhs
}
# FROST CSL ----
# Create a comma-separated list of the vector of inputs for some parameter
frost_csl <- function(parameter) {
parameter <- unique(parameter)
parameter %||% paste(parameter, collapse = ",")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.