score_sets: Identifies the winner of each game

Description Usage Arguments Value See Also

View source: R/data_clean_functions.R

Description

For each game, identify whether the server or returner won by counting who scored more points than the other.

Usage

1
score_sets(setnum)

Arguments

setnum

A data frame whose rows contain pbp records of a game.

Value

The original data frame with an extra column 'winner' denoting whether the server or returner won the game; NAs exist in 'winner' if set4 and/or set5 have 99 in 'pbp'.

See Also

Other sackmann data cleaning functions: data_clean_tot, split_games_by_sets, split_sets


kattaoa/oktennis documentation built on July 13, 2019, 3:15 p.m.