This function used to produce summaries of data structure and overview of the data frame.

ExpData(data, type = 1)

Arguments

data

a data frame

type

Type 1 is overview of the data; Type 2 is structure of the data

Details

This function provides overview and structure of the data frames.

  • Type = 1, overeview of the data (column names are "Descriptions", "Obs")

  • Type = 2, structure of the data (column names are "S.no", "Variable Name", "Variable Type", "

Examples

# Overview of the data ExpData(data=mtcars,type=1)
#> Descriptions Obs #> 1 Sample size (Nrow) 32 #> 2 No. of Variables (Ncol) 11 #> 3 No. of Numeric Variables 11 #> 4 No. of Factor Variables 0 #> 5 No. of Text Variables 0 #> 6 No. of Logical Variables 0 #> 7 No. of Date Variables 0 #> 8 No. of Zero variance Variables (Uniform) 0 #> 9 %. of Variables having complete cases 100% (11) #> 10 %. of Variables having <50% missing cases 0% (0) #> 11 %. of Variables having >50% missing cases 0% (0) #> 12 %. of Variables having >90% missing cases 0% (0)
# Structure of the data ExpData(data=mtcars,type=2)
#> S.no Variable Name Variable Type % of Missing No. of Unique values #> 1 1 mpg numeric 0 25 #> 2 2 cyl numeric 0 3 #> 3 3 disp numeric 0 27 #> 4 4 hp numeric 0 22 #> 5 5 drat numeric 0 22 #> 6 6 wt numeric 0 29 #> 7 7 qsec numeric 0 30 #> 8 8 vs numeric 0 2 #> 9 9 am numeric 0 2 #> 10 10 gear numeric 0 3 #> 11 11 carb numeric 0 6