This is s small function the split the data according to thier types (numerica, integers or factors)

Data_Classes_Split(Data)

Arguments

Data

is the dataframe we are spliting it's variables to different classes.

Value

return a list that each element contain the coloumns that belong to specific class

Details

This function split the data to different classes depending on the data type that is contained in each variable in the data

Author

Rani Basna

Examples

X <- data.frame("ID" = as.numeric(c(1,2,3,4)), "Age" = c(21,15,44,14), "Sex" = c("Male", "Male", "Female", "Female"), "Name" = c("John","Samer", "Sara", "Carolina"), Smoking = c("Yes","No", "No","Yes")) data_split <- Data_Classes_Split(X)