Skip to content

Commit f327e9c

Browse files
Update mini2.R
Update documentation to match new function calls
1 parent 03aee50 commit f327e9c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

R/mini2.R

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
#' @param punts The play-by-play punting data to be summarized
1313
#' @param threshold The minimum number of career punts needed to be included, defaults to 64
1414
#' @param ... Any additional arguments will be passed through to \code{dplyr::summarise}
15-
#' @return A tibble \code{punters} where each row is a punter and each column is a stat
15+
#' @return A tibble where each row is a punter and each column is a stat
1616
#' @examples
1717
#' \dontrun{
18-
#' create_mini(punts)
18+
#' punters <- by_punters(punts)
19+
#' punters_custom <- by_punters(punts, longest_punt = max(GrossYards))
20+
#' more_punters <- by_punters(punts, threshold=16)
1921
#' }
2022
#' @export
2123
by_punters <- function(punts, ..., threshold=64) {
@@ -39,10 +41,10 @@ by_punters <- function(punts, ..., threshold=64) {
3941
#' if you have additional parameters you'd like to be summarised, the easiest thing would be to call \code{summarise} yourself.
4042
#' @param punts The play-by-play punting data to be summarized
4143
#' @param threshold The minimum number of punts for a season to be included, defaults to 32
42-
#' @return A tibble \code{miniY} where each row is a punter-season and each column is a stat
44+
#' @return A tibble where each row is a punter-season and each column is a stat
4345
#' @examples
4446
#' \dontrun{
45-
#' create_miniY(punts)
47+
#' by_punter_seasons(punts)
4648
#' }
4749
#' @export
4850
by_punter_seasons <- function(punts, ..., threshold=32) {
@@ -68,10 +70,10 @@ by_punter_seasons <- function(punts, ..., threshold=32) {
6870
#' if you have additional parameters you'd like to be summarised, the easiest thing would be to call \code{summarise} yourself.
6971
#' @param punts The play-by-play punting data to be summarized
7072
#' @param threshold The minimum number of punts for a week to be included, defaults to 1
71-
#' @return A tibble \code{miniG} where each row is a punter-week and each column is a stat
73+
#' @return A tibble where each row is a punter-week and each column is a stat
7274
#' @examples
7375
#' \dontrun{
74-
#' create_miniG(punts)
76+
#' by_punter_games(punts)
7577
#' }
7678
#' @export
7779
by_punter_games <- function(punts, ..., threshold=1) {

0 commit comments

Comments
 (0)