colapply_functions {simdata}R 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.


[Package simdata version 0.4.0 Index]