split_sets: Separates a pbp (point-by-point) string into sets

Description Usage Arguments Value See Also

View source: R/data_clean_functions.R

Description

split_sets separates a string containing the pbp record of tennis matches whose sets are delimited by a period ("."). Since there is a maximum of 5 sets tennis match, expect a list of 5 entries, each with their pbp record.

Usage

1
split_sets(vec.pbp)

Arguments

vec.pbp

A vector of strings containing the pbp record of tennis matches.

Value

A list of at most 5 strings, each representing the pbp record of sets in a tennis match.

See Also

Other sackmann data cleaning functions: data_clean_tot, score_sets, split_games_by_sets


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