coalf | R Documentation |
Coalesce function that matches and updates factor levels appropriately. Checks each argument vector starting with the first until a non-NA value is found. Author: Bryce Chamberlain.
coalf(...)
... |
Source vectors. |
Vector of values.
x <- sample(c(1:5, NA, NA, NA))
coalf(x, 0L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.