A dummy function for demo of wrapper function with ... arguments. This function multiplies two numeric values / vectors.

wrapper_funcs(some_arg = 1, ...)

Arguments

some_arg

(numeric) a single numeric value or vector, needs to be compatible with the other argument ... for arithmetics.

...

named argument value pairs to be passed to func_1 and func_2

Value

a numeric vector as a result of some arithmetics using inputs. Its dimension is determined according to basting rules.

Examples

# specifiy all keyword arguments wrapper_funcs(some_arg = 1, x = 2, y = 3, a = 4, b = 5)
#> [1] 16
# specify some (but not all) keyword arguments wrapper_funcs(some_arg = 1, x = 2, y = 3, a = 4)
#> [1] 4
# only keyword arguments are passed to underlying functions wrapper_funcs(some_arg = 1, x = 2, y = 3, a = 4, 5)
#> [1] 4
# unrecognized keyword arguments will be ignored wrapper_funcs(some_arg = 1, x = 2, y = 3, a = 4, d = 5)
#> [1] 4