stat_total: Total match statistics

Description Usage Arguments Value Examples

Description

Calculate the total match statistics for a team by adding the individual player statistics. Slightly slower than using the pre-summarised stats in .$RowMatch, but these are inaccurate - eg. crowdsurfs aren't recorded at all. Available statistics are "inflictedCasualties", "inflictedCatches", "inflictedDead", "inflictedInjuries", "inflictedInterceptions", "inflictedKO", "inflictedMetersPassing", "inflictedMetersRunning", "inflictedPasses", "inflictedPushOuts", "inflictedStuns", "inflictedTackles", "inflictedTouchdowns", "sustainedCasualties", "sustainedDead", "sustainedInjuries", "sustainedInterceptions", "sustainedKO", "sustainedStuns", "sustainedTackles"

Usage

1
stat_total(match_data, stat, team)

Arguments

match_data

Match data object from get_game_stats

stat

Name of the statistic to collect

team

One of "home" or "away" to identify the team

Value

The sum of the individual player stats for the team

Examples

1
2
m = get_game_stats(uuid = "1000304d15")
home_kills <- stat_total(m, "inflictedDead", "home")

nufflytics/nufflytics documentation built on Oct. 10, 2020, 5:27 p.m.