| cat_ord_data | R Documentation |
A dataset created by discretizing the continuous num_data into 5 ordered categorical levels per variable.
cat_ord_data
A data.frame with 1000 rows and 5 variables.
Categorical version of num_data$X1, with 5 ordered levels a–e.
Categorical version of num_data$X2, with 5 ordered levels a–e.
Categorical version of num_data$X3, with 5 ordered levels a–e.
Categorical version of num_data$Z, with 5 ordered levels a–e.
Categorical version of num_data$Y, with 5 ordered levels a–e.
The R code used to generate this dataset is as follows:
data(num_data) cat_ord_data <- as.data.frame( lapply(num_data, function(x) cut(x, breaks = 5, labels = letters[1:5], ordered_result = TRUE)) )
num_data
data(cat_ord_data)
head(cat_ord_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.