ps_streaks_get_max_rank_simple: ps_streaks_get_max_rank_simple

View source: R/mod_plot_functions_max_rank.R

ps_streaks_get_max_rank_simpleR Documentation

ps_streaks_get_max_rank_simple

Description

Given a year range and a list of teams and a value n, find the maximum

Usage

ps_streaks_get_max_rank_simple(lzy_streaks, n, min_year, max_year, teams)

Arguments

lzy_streaks

Lazy streaks table (possibly with a filter)

n

Function will maximize value of nth highest rank

min_year

Minimum year for filter

max_year

Maximum year for filter

teams

Vector of team IDs for filter.

Details

Note: This function is inefficient when the number number of intensity levels, teams and years is large.

Value

Maximum value


tor-gu/streakexplorer documentation built on Aug. 2, 2022, 8:22 p.m.