You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/makeWAR.R
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
#' @title makeWAR
2
2
#' @aliases makeWAR.GameDayPlays
3
3
#'
4
-
#' @description Computes runs above average (RAA) for each player involved in each play of the 'GameDayPlays' object.
4
+
#' @description Computes runs above average (RAA) for each player involved in each play of the \code{\link{GameDayPlays}} object.
5
5
#'
6
-
#' @details Within a 'GameDayPlays' object, each row consists of a single plate appearance and contains information about the batter, all of the baserunners,
6
+
#' @details Within a \code{\link{GameDayPlays}} object, each row consists of a single plate appearance and contains information about the batter, all of the baserunners,
7
7
#' the pitcher, and all of the fielders on the field during the plate appearance. The total value of the play as determined by the change in the run expectancy
8
8
#' matrix from the beginning of the plate appearence to the end of the plate appearance is partitioned across all players involved in the play on offense,
9
9
#' and that same value (with the opposite sign) is partitioned across the pitcher and all of the fielders. Thus for every single plate appearance a runs above average (RAA) value is assigned
@@ -28,20 +28,20 @@
28
28
#' must be 'batterPos' (the defensive position of the batter)}
29
29
#' }
30
30
#'
31
-
#' @param data An object of class 'GameDayPlays'
31
+
#' @param data An object of class \code{\link{GameDayPlays}}
32
32
#' @param models A named list of models, each with a predict() method. See Details.
33
33
#' @param verbose A \code{logical} indicating whether you want various messages
34
34
#' and information to be displayed during the computation
35
35
#' @param low.memory A \code{logical} indicating whether to conserve memory by
36
36
#' not storing the model objects.
37
37
#' @param ... currently ignored
38
38
#'
39
-
#' @return An object of class 'openWARPlays' which is a list of length 4 containing the following:
39
+
#' @return An object of class \code{\link{openWARPlays}} which is a list of length 4 containing the following:
40
40
#' \itemize{
41
-
#' \item{plays}{A data.frame of class 'GameDayPlays' that is the same as the input to the function.}
42
-
#' \item{data}{A data.frame of class 'GameDayPlaysExt' containing the original data along with appended rows containing the RAA values for each player involved in a plate appearance}
41
+
#' \item{plays}{A data.frame of class \code{\link{GameDayPlays}} that is the same as the input to the function.}
42
+
#' \item{data}{A data.frame of class \code{\link{GameDayPlaysExt}} containing the original data along with appended rows containing the RAA values for each player involved in a plate appearance}
43
43
#' \item{models.used}{A list containing all of the model information for each of the models used in computing RAA.}
44
-
#' \item{openWAR}{A data.frame of class 'openWARPlays' containing only the columns necessry for input into the getWAR function. }
44
+
#' \item{openWAR}{A data.frame of class \code{\link{openWARPlays}} containing only the columns necessry for input into the getWAR function. }
0 commit comments