colapply_functions: Apply list of functions to column of object

View source: R/utilities.R

colapply_functionsR Documentation

Apply list of functions to column of object

Description

Helper function to simplify workflow with lists of functions.

Usage

colapply_functions(obj, flist)

Arguments

obj

2-dimensional array (matrix or data.frame).

flist

List of functions of length equal to the number of columns of obj. Each entry must be a function applicable to a single column of obj. The i-th entry of flist is applied to the i-th column of obj.

Value

Matrix or data.frame (same type as obj) with names taken from obj.


matherealize/simdata documentation built on Dec. 5, 2024, 4:17 a.m.