powered by
Calculate hitting streaks
calc_streak(x)
A data frame or character vector of hits ("H") and misses ("M").
"H"
"M"
A data frame with one column, length, containing the length of each hit streak.
length
# NOT RUN { data(kobe_basket) calc_streak(kobe_basket$shot) # }
Run the code above in your browser using DataLab