dive_place {SwimmeR}R Documentation

Adds places to diving results

Description

Places are awarded on the basis of score, with highest score winning. Ties are placed as ties (both athletes get 2nd etc.)

Usage

dive_place(
  df,
  score_col = Finals,
  max_place = NULL,
  keep_nonscoring = TRUE,
  verbose = TRUE
)

Arguments

df

a data frame with results from swim_parse, including only diving results (not swimming)

score_col

the name of a column in df containing scores on which to place (order) performances

max_place

highest place value that scores #' @param score_col the name of a column in df containing scores on which to place (order) performances

keep_nonscoring

are athletes in places greater than max_place be retained in the data frame. Either TRUE or FALSE

verbose

should warning messages be posted. Default is TRUE and should rarely be changed.

Value

data frame modified so that places have been appended based on diving score

See Also

dive_place is a helper function used inside of results_score


[Package SwimmeR version 0.14.2 Index]