Skip to content

Commit

Permalink
fixed as_tibble.grouped_ts
Browse files Browse the repository at this point in the history
  • Loading branch information
earowang committed Oct 16, 2017
1 parent 693bc37 commit b0a79da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/as-tsibble.R
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ as.tibble.tbl_ts <- as_tibble.tbl_ts
as_tibble.grouped_ts <- function(x, ...) {
grps <- groups(x)
class(x) <- c("grouped_df", "tbl_df", "tbl", "data.frame")
attr(x, "vars") <- grps
attr(x, "vars") <- flatten(grps)
x
}

Expand Down
1 change: 1 addition & 0 deletions R/parse-key.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ reduce_key <- function(lst_keys) {
quos_auto_name(comb_keys)
}

# this returns a vector of groups/key characters
flatten_key <- function(lst_keys) {
if (is.null(lst_keys)) {
lst_keys <- list()
Expand Down

0 comments on commit b0a79da

Please sign in to comment.