R/predict.genalg.R

Defines functions predict.genalg

predict.genalg <-
function(obj, newx, ...) {
    predictors = obj[['vars']]
    data = newx[,predictors]
    
    out = predict(obj=obj[['model']], newdata=data)
    return(out)
}
wrbrooks/genetic documentation built on May 4, 2019, 11:59 a.m.