Skip to content

Commit

Permalink
ep_load doesn't have an arg
Browse files Browse the repository at this point in the history
  • Loading branch information
tanho63 committed Jan 16, 2022
1 parent 66d77f7 commit 506cc6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/ep_load.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' This function downloads precomputed expected points data from the ffopportunity automated releases.
#'
#' @param season A numeric vector of four digit years associated with given NFL seasons - defaults to latest season.
#' @param type Data type - one of `"weekly"`, `"pbp_pass"`, `"pbp_rush"`, or `"all"`
#' @param type Data type - one of `"weekly"`, `"pbp_pass"`, or `"pbp_rush"`
#' @param version EP model version: one of "latest" (default) or "v1.0.0" - these are currently identical.
#'
#' @return a dataframe identical to what would be returned by `ffopportunity::ep_build()` for a given season.
Expand All @@ -27,6 +27,7 @@ ep_load <- function(season = nflreadr:::most_recent_season(),

version <- rlang::arg_match0(version, c("latest","v1.0.0"))
type <- rlang::arg_match0(type, c("weekly","pbp_pass","pbp_rush"))

stopifnot(
length(season) > 0,
is.numeric(season),
Expand Down
2 changes: 1 addition & 1 deletion man/ep_load.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 506cc6d

Please sign in to comment.