powered by
Collapse multiple rows to a single value
# S3 method for tbl_ts summarise(.data, ..., drop = FALSE)# S3 method for tbl_ts summarize(.data, ..., drop = FALSE)
# S3 method for tbl_ts summarize(.data, ..., drop = FALSE)
A tsibble.
Name-value pairs of expressions.
FALSE returns a tsibble object as the input. TRUE drops a tsibble and returns a tibble.
FALSE
TRUE
Time index will not be collapsed by summarise.tbl_ts.
summarise.tbl_ts
dplyr::summarise
dplyr::summarize
# NOT RUN { pedestrian %>% summarise(Total = sum(Count)) ## drop = TRUE ---- pedestrian %>% summarise(Total = sum(Count), drop = TRUE) # }
Run the code above in your browser using DataLab