Learn R Programming

lessR (version 3.7.6)

CountAll: CountAll Descriptive Analysis of all Variables in the Data Frame

Description

Automatically call the following functions in this package: SummaryStats, Histogram and BarChart. The result is set of summary statistics for every variable in the data frame, by default called mydata, a histogram for each numerical variable and a bar chart for each categorical variable.

Usage

CountAll(x=mydata, quiet=FALSE, …)

ca(…)

Arguments

x

Data frame that contains the variables to analyze, by default mydata.

quiet

Suppress text output if TRUE.

Other parameter values for graphics.

Details

CountAll is designed to work in conjunction with the lessR function Read, which reads a csv or other formatted data file into the data frame mydata. All the bar charts and associated summary statistics are written to one file and all the histograms and associated summary statistics for the numerical variables are written to another file.

See Also

SummaryStats, Histogram, BarChart.

Examples

Run this code
# NOT RUN {
# create data frame called mydata
n <- 12
X <- sample(c("Group1","Group2"), size=n, replace=TRUE)
Y <- rnorm(n=n, mean=50, sd=10)
mydata <- data.frame(X,Y)
rm(X); rm(Y);

# CountAll descriptive analysis of mydata
CountAll()
# short name
ca()
# }

Run the code above in your browser using DataLab