printDataframeToString: #' colApply apply the function to the rows of a dataframe...

Description Usage Arguments

View source: R/shared-utils.R

Description

#' colApply apply the function to the rows of a dataframe row-wise #' #' @param f - a function which operates on a vector #' @param ... a list of vectors colApply = function(f, ...) browser() if (!all(sapply(list(...), length)==length(list(...)[[1]]))) stop("arguments must all have same length") m = matrix(c(...),ncol=length(list(...))) out = apply(m, 1, f, na.rm=TRUE) return(out) capture a data frame for an error message

Usage

1

Arguments

x

a dataframe


terminological/uk-covid-datatools documentation built on June 24, 2021, 8:16 p.m.