Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/scrape_commentary.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)) %>%
Expand Down