any_by_row: Apply functions across rows

View source: R/utils.R

any_by_rowR Documentation

Apply functions across rows

Description

  • any_by_row: For each row, are any of the columns true (see any())

  • fn_by_row: Apply function across each entire row (function takes whole row as argument)

  • reduce_by_row: Apply Reduce() across each row of matrix or dataframe

Usage

any_by_row(data)

fn_by_row(data, fn)

reduce_by_row(data, fn)

Arguments

data

input data

fn

function to apply


adamleejohnson/R-ukbiobank documentation built on April 25, 2022, 2:11 a.m.