Learn R Programming

quickReg (version 1.0.0)

display.data.frame: Display summary information of varibles in a data.frame

Description

Dispaly count, frequency or mean, standard deviation and test of normality, etc.

Usage

"display"(x = NULL, col = NULL, normtest = NULL, useNA = "ifany", discrete_limit = 10, exclude_discrete = TRUE, ...)

Arguments

x
A data.frame
col
Column indices or names of the variables in the dataset to display, the default columns are all the variables
normtest
A character indicating test of normality, the default method is shapiro.test when sample size no more than 5000, otherwise lillie.testKolmogorov-Smirnov is used, see package nortest for more methods.Use 'shapiro.test', 'lillie.test', 'ad.test', etc to specify methods.
useNA
Whether to include NA values in the table, see table for more details
discrete_limit
A numeric defining the minimal of unique value to display the variable as count and frequency
exclude_discrete
Logical, whether to exclude discrete variables with more unique values specified by discrete_limit
...
additional arguments

See Also

display.reg, display

Examples

Run this code
data(diabetes)
head(diabetes)
display(diabetes, 1:2)
display(diabetes, 1:11, normtest = "lillie.test")

Run the code above in your browser using DataLab