View source: R/general_functions.R
apply_named_args | R Documentation |
a version of apply. if MARGIN = 1, the values in each column of X are passed to FUN as named arguments according to the column name. if MARGIN = 2, the values in each row of X are passed to FUN as named arguments according to the row name
apply_named_args(X, MARGIN, FUN, keep_class = TRUE)
X |
see arguments for apply. If MARGIN = 1, colnames(X) must match the named arguments of FUN. |
MARGIN |
see arguments for apply |
FUN |
see arguments for apply. Must have named arguments |
see apply
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.