apply_named_args: a version of apply. if MARGIN = 1, the values in each column...

Description Usage Arguments Value

View source: R/helpers.R

Description

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

Usage

1
apply_named_args(X, MARGIN, FUN)

Arguments

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

Value

see apply


jameshay218/vaxedemic documentation built on Jan. 30, 2020, 2:58 a.m.