Code
gain_curve(df, truth, estimate)
Condition
Error in `gain_curve()`:
! `truth` should be a factor, not a a number.
Code
gain_curve_vec(df$truth, df$Class1, na_rm = FALSE)
Condition
Error in `gain_curve_vec()`:
x Missing values were detected and `na_ra = FALSE`.
i Not able to perform calculations.
Code
gain_curve_vec_vec(cp_truth, estimate)
Condition
Error in `gain_curve_vec_vec()`:
! could not find function "gain_curve_vec_vec"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.