GetModel: Get Model for Trigger Processing

Description Usage Arguments Value Examples

Description

Function loads a model from the TRIGGER_PATH]/Models/ folder saved as a *.Rdata file. The Model is then applied to input data collected from an e-mail trigger via the MobileTrigger::MailTriggerInput() function

Usage

1
GetModel(ID = NULL, path = NULL)

Arguments

ID

integer, Model ID value determined from MobileTrigger::ListModels() output when SelectMDL = NULL

path

string, path to the /Models/ folder.

Value

A model into the environment

Examples

1
2
3
4
5
6
7
################################
# Get Model                    #
################################
  MODELPATH <- "C:/Triggers/Models/"
  MDL <- GetModel(ID = 1, path = MODELPATH)
## To predict use:
  predict(MDL[[1]], newdata) # to get the model use the MDL[[1]]

MobileTrigger documentation built on May 16, 2019, 5:08 p.m.