R/MagicModel.R

#' @title Magic model
#' @param df Pass in a dataframe
#' @export
MagicModel <- function(df, ...) {
   model = structure(list(x = df[, -1], y = df[, 1]), 
                     class = "MagicModel")
   return(model)
}
wtong5456/MagicModel documentation built on May 9, 2019, 7:47 a.m.