Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
change pivot
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoene committed Jun 5, 2020
1 parent 348884e commit 3d8d889
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions R/utils.R
Expand Up @@ -153,13 +153,13 @@ rename_sheets <- function(df){
#'
#' @keywords internal
pivot <- function(df){
tidyr::pivot_longer(
df,
tidyselect::contains("/"),
names_to = c("date"),
values_to = c("cases"),
values_ptypes = list(cases = "character")
)
df %>%
dplyr::select(-lon, -lat) %>%
tidyr::pivot_longer(
tidyselect::contains("/"),
names_to = c("date"),
values_to = c("cases")
)
}

#' Table
Expand Down

0 comments on commit 3d8d889

Please sign in to comment.