Learn R Programming

desctable (version 0.3.0)

statColumn: Generate one statistic for all variables

Description

Use one stat function (made safe using statify) on all the data to produce a single statistics column.

Usage

statColumn(stat, data)

Arguments

stat

The statistic to use

data

The dataframe to apply the statistic to

Value

A vector for one statistic column

Details

The result is either a numeric vector, or a character vector if the content of the column is not made entirely of numbers.