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

View source: R/general_functions.R

apply_named_argsR 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

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

apply_named_args(X, MARGIN, FUN, keep_class = TRUE)

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


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.