z.a.util.gen.summary: Util - Generate Summary

Description Usage Arguments Value Author(s)

Description

To get (back) to the overview of all steps and functions use this link: a.a.main

Generate a summary of given data or compare two

This function generates a summary of a data.frame with one or two given tables with data. Each column/attribute of the given data will be summarized individually.

It basically works like the standard summary function of the base package but it does not store the row description in each individual cell like it is done in the standard function.

Furthermore it also compares the summary of to data tables if two are passed as parameters.

Usage

1
z.a.util.gen.summary(frame1, f1_type, frame2 = NULL, ...)

Arguments

frame1

A data.frame or matrix which get summarzed.

f1_type

A name of type character for the context the observations in the data represent. These could by "Spam" for example. It then gets prefixed to the element of summarization of the row like "Spam Mean:".

I will only be used if one data table is provided. For two data table it will be "Diff" by standard and will create row names like "Diff Mean:".

frame2

A data.frame or matrix which get summarzed and compared to frame1. Number and name of the columns of frame1 and frame2 need to be identical

Value

A data.frame with either 6 rows for ein provided data.frame with the elements min, 1st quantile, median, mean, 3rd quantile and max.

For two data.frames it contains 20 rows with 6 rows looking explained above, another 6 rows showing the difference of each summary element of the two data tables and 2 rows of empty space between each summary.

Author(s)

Vitali Friesen


Vitlik/DA1-16 documentation built on May 9, 2019, 10:01 p.m.