Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summarizeDF

Summarize a data.rrame


Description

This function summarizes each variable that is in a data.frame. It can be used, e.g., in an R script to write summary information about a data.frame into a text file that is in a version control system so that one can see in the version control system whether one or more variables in the data frame have changed.

Usage

summarizeDF( dat, printValues = TRUE, maxLevel = 20, file = NULL, ... )

Arguments

dat

a data.frame.

printValues

logical. If FALSE only MD5 checksums are returned, which could be desirable if the data frame contains confidential data that should not be included in the output.

maxLevel

integer. If the number of unique values in a variable is less than or equal to the number specified in this argument (and argument printValues is TRUE), a frequency table is included in the output.

file

a character string or a writable connection naming the file to write to.

...

further arguments forwarded to sink() if argument file is not NULL.

Author(s)

Arne Henningsen


miscTools

Miscellaneous Tools and Utilities

v0.6-26
GPL (>= 2)
Authors
Arne Henningsen, Ott Toomet
Initial release
2019-12-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.