prepare.data | R Documentation |
relative.importance
Prepares datasets to be in the format required by the function relative.importance
. It is automatically called by relative.importance
.
prepare.data(dataset)
dataset |
A data frame with 4 columns only, in the following order: 1: student's ID, 2: class, 3: transition (0 if not, 1 if yes) and 4: performance score. |
dataset |
The data frame given as the argument, with column names changed and missing values removed. |
Christiana Kartsonaki
# generate a dataset data <- data.frame(seq(1:10), rep(c(1, 2, 3), length.out = 10), rbinom(1, n = 10, p = 0.7), c(rnorm(8, 0, 1), NA, NA)) # run function data_clean <- prepare.data(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.