Skip to content

Commit c8ed20a

Browse files
committed
minor tweak in bind_tsibble()
1 parent debd618 commit c8ed20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/update.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ bind_tsibble <- function(data, template, position = c("before", "after")) {
8282
}
8383
tsbl_vars <- setdiff(c(index_var(template), key_vars(template)), data_cols)
8484
if (position == "before") {
85-
res <- bind_cols(template[tsbl_vars], data)
85+
res <- bind_cols(as_tibble(template)[tsbl_vars], data)
8686
} else {
8787
res <- bind_cols(data, template[tsbl_vars])
8888
}

0 commit comments

Comments
 (0)