Learn R Programming

mdapack (version 0.0.2)

checkValidity: A checkValidity Function

Description

'checkValidity' checks the class of the different variables in the data frame and returns a list of numeric and factor or character variables. It also returns basic summary statistics(mean, median, min, max) for numeric and categorical/character variables It also returns the number of colunms and rows in the data frame.

Usage

checkValidity(dat, numeric = FALSE, cat = FALSE)

Arguments

dat

Data in data frame format.

numeric

Numeric data type.

cat

Categorical or factor data type.

Value

Returns a list of numeric and character(factor) variables, basic summary statistics and number of rows and columns in the data frame

Examples

Run this code
# NOT RUN {
library(FactoMineR)
data(wine)
checkValidity(wine, numeric=TRUE)
# }

Run the code above in your browser using DataLab