SmashR: SmashR'

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This function 'smashes' the data, it calculates various statistics per unit of analysis (UoA)

Usage

1
SmashR(DT, UoA, predictors)

Arguments

DT

This is a data.table object

UoA

This is the variable in the data.table describing the unit of analysis

predictors

These are the clean predictors provided manually or from the output of ScanR

Value

a data.table with all the statistics per UoA

Examples

1
2
3
4
DT = data.table::data.table(plyr::baseball)
UoA = 'team'
predictors = c('g', 'ab', 'r', 'h')
rs = SmashR(DT, UoA, predictors)

womta/PurifyR documentation built on May 21, 2019, 11:11 a.m.