injsummary_unit {injurytools}R Documentation

Transform injsummary() output according to the unit of exposure

Description

Transform injsummary() output according to the unit of exposure

Usage

injsummary_unit(unit, injds, quiet)

Arguments

unit

Character that indicates the unit of exposure of the sports injury data.

injds

injds data frame to be transformed.

quiet

Logical, whether or not to silence the warning messages (defaults to FALSE).

Value

A list of two elements: (i) same injds data frame with 'injincidence' and 'injburden' values transformed according to unit, named injds and (ii) a character vector that expresses the unit used for the rates, i.e. for the player's time at risk, named unit_timerisk.


[Package injurytools version 1.0.3 Index]