n_offs: Return Scorelines that only occurred n times in history

View source: R/n_offs.R

n_offsR Documentation

Return Scorelines that only occurred n times in history

Description

note don't try this with 0 - won't return infinite possible scorelines If you pick crazy numbers for the number of times e.g. 34223, you'll get an error message this function is meant for small numbers of occurrences

Usage

n_offs(df = NULL, N = NULL, Tier = NULL)

Arguments

df

The results dataframe

N

The Number of instances

Tier

Tier

Value

a dataframe with summary of results.

Examples

n_offs(england, 1) #return results that have occurred only once across all four tiers
n_offs(england, 2) #return results that have occurred only twice across all four tiers
n_offs(england, 3) #return results that have occurred 3 times across all four tiers

n_offs(england, 1, 1) #return which results have occurred only once in the top tier
n_offs(england, 1, 4) #return which results have occurred only once in the 4th tier
n_offs(england, 2, 2) #return which results have occurred twice in the 2nd tier
n_offs(england, 5, 3) #return which results have occurred five times in the 3rd tier


jalapic/engsoccerdata documentation built on Nov. 15, 2022, 3:34 a.m.