calc_streak: Calculate hit streaks

View source: R/calc_streak.R

calc_streakR Documentation

Calculate hit streaks

Description

Calculate hit streaks

Usage

calc_streak(x)

Arguments

x

A character vector of hits ("H") and misses ("M").

Value

A data frame with one column, length, containing the length of each hit streak.

Examples

data(kobe_basket)
calc_streak(kobe_basket$shot)

OpenIntroStat/openintro-r-package documentation built on Nov. 19, 2023, 4:58 p.m.