col_compare: Function to return the column with the max value (or value of...

Description Usage Arguments

View source: R/functions.R

Description

Function to return the column with the max value (or value of function provided)

Usage

1
col_compare(df, cols, fun = which.max)

Arguments

df

dataframe object

cols

column(s) to remove NA and replace with 0

fun

operator function to apply across columns, defaults to max


awhstin/awtools documentation built on Oct. 12, 2019, 6:54 a.m.