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

Description Usage Arguments Value Author(s) Examples

View source: R/BCA.R

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

1

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

1
2

Example output

Registered S3 methods overwritten by 'lme4':
  method                          from
  cooks.distance.influence.merMod car 
  influence.merMod                car 
  dfbeta.influence.merMod         car 
  dfbetas.influence.merMod        car 
Warning message:
no DISPLAY variable so Tk is not available 
             Class %.NA Levels Min.Level.Size         Mean           SD
MonthGive   factor    0      2            800           NA           NA
Region      factor    0      6             61           NA           NA
YearsGive  numeric    0     NA             NA 4.859375e+00 3.171693e+00
AveDonAmt  numeric    0     NA             NA 3.050621e+01 3.538125e+01
LastDonAmt numeric    0     NA             NA 3.141111e+01 4.135760e+01
DonPerYear numeric    0     NA             NA 6.157976e-01 5.008012e-01
NewDonor    factor    0      2             38           NA           NA
Age20t29   numeric    0     NA             NA 1.242338e-01 5.537499e-02
Age20t39   numeric    0     NA             NA 2.866773e-01 9.396959e-02
Age60pls   numeric    0     NA             NA 1.944353e-01 1.326767e-01
Age70pls   numeric    0     NA             NA 1.046630e-01 9.665065e-02
Age80pls   numeric    0     NA             NA 3.270618e-02 4.212085e-02
AdultAge   numeric    0     NA             NA 4.702765e+01 5.772080e+00
SomeUnivP  numeric    0     NA             NA 3.038574e-01 1.507360e-01
FinUnivP   numeric    0     NA             NA 1.663352e-01 1.198722e-01
hh1t2mem   numeric    0     NA             NA 5.713575e-01 1.858003e-01
hh1mem     numeric    0     NA             NA 2.190589e-01 1.495654e-01
AveIncEA   numeric    0     NA             NA 5.613817e+04 2.027372e+04
DwelValEA  numeric    0     NA             NA 2.357469e+05 1.418094e+05
EngPrmLang numeric    0     NA             NA 8.951682e-01 1.356290e-01

BCA documentation built on May 2, 2019, 1:26 p.m.

Related to variable.summary in BCA...