Learn R Programming

lmSupport (version 2.9.13)

varDescribeBy: Provides common desriptives for dataframe by factor(s)

Description

Provides commons descriptive statistics for a data frame split on some factor or combination of factors. Essentially a wrapper for varDescribe() and by().

Usage

varDescribeBy(Data, IVList)

Arguments

Data

a dataframe

IVList

list of one or more factors from data frame

Value

An object of class "by", giving the results from varDescribe() applied to each subset.

Examples

Run this code
# NOT RUN {
##NOT RUN
##varDescribeBy(Adler,list(Adler$expectation,Adler$instruction))
# }

Run the code above in your browser using DataLab