apply_default | R Documentation |
Apply default values
apply_default(x, default)
x |
Vector. |
default |
Vector of default values, matched by position. |
default <- c(1, 2, 3, 4)
x <- c(10)
apply_default(x, default)
x <- c(10, NA, 30)
apply_default(x, default)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.