Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: James Azam <[email protected]>
  • Loading branch information
sbfnk and jamesmbaazam authored Dec 10, 2024
1 parent 2e84f0e commit e3326c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/preprocessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,14 @@ filter_leading_zeros <- function(data, obs_column = "confirm", by = NULL) {
return(reported_cases[])
}

##' Converts zero case counts to NA (missing) if the 7-day average is above a
##' Convert zero case counts to `NA` (missing) if the 7-day average is above a
##' threshold.
##'
##' This function aims to detect spurious zeroes by comparing the 7-day average
##' of the case counts to a threshold. If the 7-day average is above the
##' threshold, the zero case count is replaced with NA.
##' threshold, the zero case count is replaced with `NA`.
##'
##' @param threshold Numeric, defaults to Inf. Indicates if detected zero cases
##' @param threshold Numeric, defaults to `Inf`. Indicates if detected zero cases

Check warning on line 292 in R/preprocessing.R

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=R/preprocessing.R,line=292,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 81 characters.
##' are meaningful by using a threshold number of cases based on the 7-day
##' average. If the average is above this threshold at the time of a zero
##' observation count then the zero is replaced with a missing (`NA`) count
Expand Down

0 comments on commit e3326c9

Please sign in to comment.