combn_vector | R Documentation |
combine multiple vectors into one
combn_vector(..., method = "first", invalid = NA)
... |
vectors |
method |
how to combine, should be one of
|
invalid |
invalid value to ignore, |
combined vector
x1 <- c(1, 2, NA, NA)
x2 <- c(3, NA, 2, NA)
x3 <- c(4, NA, NA, 3)
combn_vector(x1, x2, x3, method = "sum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.