Learn R Programming

strvalidator (version 0.1)

calculateSummary: Calculate summary

Description

calculateSummary calculates summary statistics

Usage

calculateSummary(data, key, target)

Arguments

data
a data frame containing at least the 'key' and 'target' columns.
key
a vector indicating the columns from wich the keys will be created.
target
a vector indicating the columns for wich summary statistics should be calculated.

Value

  • data.frame with columns 'Min', 'Max', 'Mean', n', and 'Sd' for each target column.

Details

Calculates summary statistics for 'target' columns for each unique 'key' combination. NB! Requires a 'slimmed' data frame.