Learn R Programming

forecastHybrid (version 5.0.19)

getModel: Return a forecast model function for a given model character

Description

Convert the single-letter representation used in the "forecastHybrid" package to the corresponding model function from the "forecast" package

Usage

getModel(modelCharacter)

Arguments

modelCharacter

a single character representing one of the models from the models argument passed to hybridModel

See Also

hybridModel

Examples

Run this code
# NOT RUN {
forecastHybrid:::getModel("a")
forecastHybrid:::getModel("s")
forecastHybrid:::getModel("z")
# }

Run the code above in your browser using DataLab