rowApply: apply a function to a data.frame's rows

View source: R/yogitools.R

rowApplyR Documentation

apply a function to a data.frame's rows

Description

This is intended to work similar to apply(x,1,f), but instead of coercing the row into vector, they are provided as individual function arguments. This helps preserve the original data types

Usage

rowApply(tbl, f)

Arguments

tbl

a data.frame

f

a function with parameters matching the column names

Value

a list of the return values of f


jweile/yogitools documentation built on May 11, 2023, 7:42 p.m.