melt_vector | R Documentation |
melt a vector into single value
melt_vector(x, method = "first", invalid = NA)
x |
vector |
method |
how to melt, should be one of
|
invalid |
invalid value to ignore, |
melted single value
melt_vector(c(NA, 2, 3), method = "first")
melt_vector(c(NA, 2, 3), method = "sum")
melt_vector(c(NA, 2, 3), method = ",")
melt_vector(c(NA, 2, Inf), invalid = c(NA, Inf))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.