data_clean_tot: Cleans up a Sackmann point-by-point dataset

Description Usage Arguments Value See Also

View source: R/data_clean_functions.R

Description

data_clean_tot converts a match-wise Sackmann point-by-point dataset into a game-wise dataaset with point-by-point records, the outcome of the game, and accumulation scores set-wise and match-wise.

Usage

1
data_clean_tot(us_open, last_rownum, first_rownum = 1)

Arguments

us_open

A Sackmann point-by-point dataset.

last_rownum

The last row to apply the cleaning procedure.

first_rownum:

The first row to apply the cleaning procedure. All rows from first_rownum to last_rownum will go through the cleaning procedure.

Value

A dataframe whose rows are the games of tennis matches with the following columns:

See Also

Other sackmann data cleaning functions: score_sets, split_games_by_sets, split_sets


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