revdep/library.noindex/baker/new/vroom/bench/taxi_multiple/readr-dplyr.R

({ library(readr); library(dplyr); library(purrr) })
x <- map_dfr(set_names(file), .id = "path",
  ~ read_csv(.x, col_types = c(pickup_datetime = "c"), quote = "", trim_ws = FALSE, na = character())
)
print(x)
a <- head(x)
b <- tail(x)
c <- sample_n(x, 100)
d <- filter(x, payment_type == "UNK")
e <- group_by(x, payment_type) %>% summarise(avg_tip = mean(tip_amount))
zhenkewu/baker documentation built on May 6, 2024, 11:19 p.m.