Learn R Programming

mrap (version 1.0.1)

class_prediction: Create a class_prediction instance

Description

Create a class_prediction instance

Usage

class_prediction(code_string, input_data, test_results)

Value

A class_prediction instance

Arguments

code_string

A line of code as a string, or "N/A" if not given

input_data

A data frame, a named list, or a URL as a string

test_results

A data frame or a list of data frames

Examples

Run this code
res <- data.frame(result_1 = 1, result_2 = 2)
inst_cp <- class_prediction(
"stats::glm(Species ~ Petal.Width + Petal.Length, family='binomial', iris)",
iris,
res
)

Run the code above in your browser using DataLab