Learn R Programming

Covid19Wastewater (version 1.0.1)

predict,random_linear_forest-method: predict new data from random_linear_forest models

Description

predict new data from random_linear_forest models

Usage

# S4 method for random_linear_forest
predict(object, new_data, ...)

Value

vector of predictions for each row

Arguments

object

random_linear_forest being used

new_data

data.frame.

...

extra parameters ignored

Examples

Run this code
data(Example_data, package = "Covid19Wastewater")
model <- random_linear_forest(Example_data, 2, PMMoV ~ N1 + N2 | pcr_type)
predict(model, Example_data)

Run the code above in your browser using DataLab