Spark Online Training by Edureka

n_offs: Return Scorelines that only occurred n times in history

Description Usage Arguments Value Examples

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

1
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

1
2
3
4
5
6
7
8
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


Search within the engsoccerdata package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.