Closed benjaminrobinson closed 4 years ago
## devtools::install_github("meysubb/cfbscrapR") library(cfbscrapR) #> Warning: replacing previous import 'mgcv::multinom' by 'nnet::multinom' when #> loading 'cfbscrapR' library(tidyverse) year = 2001:2019 week = 1:14 df = expand.grid(year, week) %>% setNames(c('year', 'week')) df %>% filter(year == 2019) %>% mutate(pbp = purrr::pmap( list(x = year, y = week), .f = function(x, y) { cfb_pbp_data( year = x, week = y, team = "Pittsburgh", epa_wpa = TRUE ) } )) -> pitt #> Error in is_character(x): object 'elapsed.seconds' not found
Created on 2019-12-29 by the reprex package (v0.3.0)
R version 3.6.1 (2019-07-05) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200) Matrix products: default locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] forcats_0.4.0 stringr_1.4.0 dplyr_0.8.3 [4] purrr_0.3.3 readr_1.3.1 tidyr_1.0.0 [7] tibble_2.1.3 ggplot2_3.2.1 tidyverse_1.3.0 [10] cfbscrapR_0.0.0.9000 loaded via a namespace (and not attached): [1] tidyselect_0.2.5 splines_3.6.1 haven_2.2.0 lattice_0.20-38 [5] colorspace_1.4-1 vctrs_0.2.0 generics_0.0.2 yaml_2.2.0 [9] mgcv_1.8-28 rlang_0.4.2 pillar_1.4.2 withr_2.1.2 [13] glue_1.3.1 DBI_1.0.0 dbplyr_1.4.2 modelr_0.1.5 [17] readxl_1.3.1 lifecycle_0.1.0 munsell_0.5.0 gtable_0.3.0 [21] cellranger_1.1.0 rvest_0.3.5 curl_4.3 broom_0.5.2 [25] Rcpp_1.0.3 backports_1.1.5 scales_1.1.0 jsonlite_1.6 [29] fs_1.3.1 hms_0.5.2 stringi_1.4.3 ggrepel_0.8.1 [33] grid_3.6.1 cli_1.1.0 tools_3.6.1 magrittr_1.5 [37] lazyeval_0.2.2 crayon_1.3.4 pkgconfig_2.0.3 zeallot_0.1.0 [41] ellipsis_0.3.0 Matrix_1.2-17 xml2_1.2.2 reprex_0.3.0 [45] lubridate_1.7.4 assertthat_0.2.1 httr_1.4.1 rstudioapi_0.10 [49] R6_2.4.1 nnet_7.3-12 nlme_3.1-140 compiler_3.6.1
Fixed this. Thanks!
Created on 2019-12-29 by the reprex package (v0.3.0)