Last data update: 2014.03.03

R: Basic summary information of the variables of a data frame
variable.summaryR Documentation

Basic summary information of the variables of a data frame

Description

The function returns a data frame where, the row names correspond to the variable names, and a set of columns with summary information for each variable. Its purpose is to allow the user to quickly scan the data frame for potentially problematic variables.

Usage

variable.summary(dframe)

Arguments

dframe

A data frame.

Value

The returned data frame contains the variables Class (numeric, integer,factor, or character), missing values), Levels (the levels of a factor variable, or NA for non-factor variables), Min.Level.Size (the number of cases for the smallest level of a factor, or NA for a non-factor), Mean (the mean of non-missing cases for a numeric or integer variable, or NA for factor and character variables), and SD (the standard deviation of non-missing cases for a numeric or integer variable, or NA for factor and character variables).

Author(s)

Dan Putler

Examples

  data(CCS)
  variable.summary(CCS)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(BCA)
Error in library(BCA) : there is no package called 'BCA'
Execution halted