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.


simdata documentation built on April 4, 2025, 12:50 a.m.