Description Usage Arguments Value Examples
View source: R/demonanalysis.R
Apply a function to every combination of some sequences
1 | apply_combinations(vec, fn, ...)
|
vec |
vector of final values of the sequences (initial values are always zero) |
fn |
function to apply to the values |
... |
other arguments passed to fn |
result of applying fn to every combination of vec values
1 | apply_combinations(c(2, 3), mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.