Skip to content

Commit

Permalink
Changed mdl_nm to model_cn (model column name)
Browse files Browse the repository at this point in the history
Related: #96
  • Loading branch information
mitchelloharawild committed Aug 1, 2019
1 parent 5f4753d commit 23b1480
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/fable.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ as_fable.tbl_ts <- function(x, response, distribution, ...){

fbl <- new_tsibble(x, class = "fbl_ts",
response = response, dist = enexpr(distribution),
mdl_nm = ".model")
model_cn = ".model")
validate_fable(fbl)
fbl
}
Expand All @@ -78,7 +78,7 @@ as_fable.grouped_ts <- function(x, response, distribution, ...){
fbl <- structure(x, class = c("grouped_fbl", "grouped_ts", "grouped_df",
"fbl_ts", "tbl_ts", "tbl_df", "tbl", "data.frame"),
response = response, dist = enexpr(distribution),
mdl_nm = ".model")
model_cn = ".model")
validate_fable(fbl)
fbl
}
Expand Down Expand Up @@ -115,7 +115,7 @@ as_tsibble.fbl_ts <- function(x, ...){
#' @export
as_tsibble.grouped_fbl <- function(x, ...){
structure(x, class=setdiff(class(x), c("grouped_fbl", "fbl_ts")),
response = NULL, dist = NULL, mdl_nm = NULL)
response = NULL, dist = NULL, model_cn = NULL)
}

validate_fable <- function(fbl){
Expand Down

0 comments on commit 23b1480

Please sign in to comment.