format_target | R Documentation |
Formats a target as a 0/1 variable. If target is numeric, 1 = above average.
format_target(target)
target |
Variable as vector |
Formated target
iris$is_virginica <- ifelse(iris$Species == "virginica", "yes", "no")
iris$target <- format_target(iris$is_virginica)
table(iris$target)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.