Learn R Programming

SwimmeR (version 0.14.2)

dive_place: 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
)

Value

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

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.

See Also

dive_place is a helper function used inside of results_score