R/EventOld.R

Defines functions ps

Documented in ps

# Deprecated Functions ---------------------------------------------------------

#' Access all the penalty shots
#' 
#' `ps()` is deprecated. Use [penalty_shots()] instead.
#'
#' @returns data.frame with one row per penalty shot
#' @export
ps <- function() {
  .Deprecated(
    new     = 'penalty_shots()',
    package = 'nhlscraper',
    msg     = paste(
      '`ps()` is deprecated.',
      'Use `penalty_shots()` instead.'
    )
  )
  penalty_shots()
}

Try the nhlscraper package in your browser

Any scripts or data that you put into this service are public.

nhlscraper documentation built on June 29, 2026, 1:06 a.m.