calc_streak {statsr} | R Documentation |
Calculate hitting streaks
Description
Calculate hitting streaks
Usage
calc_streak(x)
Arguments
x |
A data frame or character vector of hits ( |
Value
A data frame with one column, length
, containing the length of each hit streak.
Examples
data(kobe_basket)
calc_streak(kobe_basket$shot)
[Package statsr version 0.3.0 Index]