Prepare_data: Title Prepare the data for the UFT_Func. Mainly, it converts...

Description Usage Arguments Value Examples

View source: R/Prepare_data.R

Description

Title Prepare the data for the UFT_Func. Mainly, it converts factor and character type data to integer format.

Usage

1
Prepare_data(categorical_data)

Arguments

categorical_data

is the original categorical data that the UFT_Func will transform to become numerical. It should be of data frame format.

Value

a data frame with all the data are of int type.

Examples

1
2
X <- data.frame("ID" = 1:4, "Sex" = c("Male", "Male", "Female", "Female" ), "Name" = c("John","Samer", "Sara", "Carolina"), Smoking = c("Yes","No", "No","Yes"))
Prepare_data(X)

ranibasna/NumericalTransformation documentation built on Sept. 2, 2021, 9:50 a.m.