Description Usage Arguments Value Author(s)
Combine multiple elements taking the class into account
1 2 3 4 5 6 7 | combine_multi_elements(
x,
sep = ",",
numeric_FUN = mean,
logical_FUN = all,
na.rm = T
)
|
x |
a vector of a class |
sep |
separating character. refer to
|
numeric_FUN |
the function to handle numeric elements. The default is
|
logical_FUN |
the function to aggregate logical elements. The default is
|
na.rm |
if NA is removed |
a vector of same class as x
Mun-Gwan Hong, mungwan@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.