collect_units: Collect units from the result of 'generate_units'

View source: R/helpers.R

collect_unitsR Documentation

Collect units from the result of generate_units

Description

Collects the units from the results of generate_units according to a unit_reference_sport

Usage

collect_units(object, unit_reference_sport = NULL)

Arguments

object

a data.frame, as returned by generate_units

unit_reference_sport

The sport to inherit units from (default is taken to be the most frequent sport in object).


hfrick/trackeR documentation built on Feb. 3, 2024, 2:30 p.m.