split_games_by_sets: Create 5 variables for each set

Description Usage Arguments Value See Also

View source: R/data_clean_functions.R

Description

For each match, split_games_by_sets creates 5 variables that store the pbp records of each set in the match; If set4 and set5 are not realized, then let pbp be '99'.

Usage

1

Arguments

vec

A list of strings, each representing the pbp record in each set.

Value

5 variables called 'set1', 'set2', 'set3', 'set4', and 'set5'. Each are pbp records of the games in the respective set.

See Also

Other sackmann data cleaning functions: data_clean_tot, score_sets, split_sets


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