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 |
|
quiet |
Logical, whether or not to silence the warning messages
(defaults to |
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]