summaryStats: Summary Statistics

Description Usage Arguments Value

View source: R/summaryStats.R

Description

Easy summary statistics. Hmisc didn't do it for me.

Usage

1
2
summaryStats(df, minFreq = 0.01, vars = NULL, sumInChar = NULL,
  avgInChar = NULL, decimals = 2)

Arguments

df

data.table from which summary statistics will come

minFreq

either a percentage or an integer. Minimum samples/percentage of df needed to show unique values

vars

A vector of variables to show summary stats for

sumInChar

Tack on a column that you would like to see the sum grouped by the character variables

avgInChar

Tack on a column that you would like to see the average grouped by the character variables

decimals

How many decimals to show

Value

Frequency Encoded Object


AnotherSamWilson/helperFuncs documentation built on Oct. 1, 2019, 8:51 p.m.