From 2bdeecd8cb9b7ad6e438c9ac676ceb1e2db4669c Mon Sep 17 00:00:00 2001 From: zecellomaster <67310349+zecellomaster@users.noreply.github.com> Date: Mon, 20 Jun 2022 00:04:01 -0400 Subject: [PATCH] Update to mitigate function call error Error presents itself when user doesn't have dplyr loaded beforehand. --- R/scrape_commentary.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/scrape_commentary.R b/R/scrape_commentary.R index 93fb919..bf33cf0 100644 --- a/R/scrape_commentary.R +++ b/R/scrape_commentary.R @@ -546,7 +546,7 @@ scrape_commentary <- function(game_id) { # Create a comment ID column and which will allow the data to be # reordered and then manipulated more to populate the half and # score variables: - comment_id = seq(from = n(), to = 1, by = -1), + comment_id = seq(from = dplyr::n(), to = 1, by = -1), # Indicator variable for stoppage time: stoppage_time = ifelse(stringr::str_detect(match_time, "\\+"), 1, 0)) %>%