colStatisticOneFunction: Apply Function to All Columns

View source: R/stat.R

colStatisticOneFunctionR Documentation

Apply Function to All Columns

Description

Applies a statistical function to all columns of a data frame

Usage

colStatisticOneFunction(dataFrame, FUN, na.rm = FALSE)

Arguments

dataFrame

a data frame of which statistics are to be calculated

FUN

statistical function to be applied on each column of dataFrame possible values: "sum", "mean", "min", "max", "number.na" (number of NA values), "length" (number of values)

na.rm

if TRUE, NA values are removed before applying the statistical function


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.