getItemStats: Generate per-item stats

Description Usage Arguments Value Note Examples

Description

Gets a data.frame of item stats with item stat IDs, their associated action, and the total values and leading players of each stat.

Usage

1
getItemStats(items = NULL, itemData = NULL)

Arguments

items

The items dataset

itemData

The dataset of descriptive item strings, defaults to strings.items

Value

data.frame of per-item stats

Note

Requires items to be cleaned up via mergeItemStats, because legacy item IDs are not recognized

Examples

1
2
3
4
5
6
## Not run: 
items <- stats2df(fromJSON("http://api.wurstmineberg.de/server/playerstats/item.json"))
items <- mergeItemStats(items, strings.items)
itemStats <- getItemStats(items, strings.items)

## End(Not run)

jemus42/wurstmineR documentation built on May 19, 2019, 4:03 a.m.