factorial_parallel_apply: Apply a function to all combinations of other inputs

Description Usage Arguments Value Examples

Description

Uses mclapply, so works where fork() can be called.

Usage

1

Arguments

f

A function to apply.

...

Named vector-like inputs.

Value

A data frame with column names equal to names(list(...)) and the name of f.

Examples

1
2
3
4
5
test_func <- function(alpha, beta) {
  alpha^2 + beta
}

factorial_parallel_apply(test_func, alpha = 1:3, beta = 1:10)

hhau/sugiyamastudy documentation built on May 7, 2019, 9:20 p.m.