getStrings: Getting descriptive strings

Description Usage Arguments Value Note Examples

Description

Get descriptive strings to complement stats datasets. Useful for human readable output such as plots or tables.

Usage

1
getStrings(category = "general")

Arguments

category

A parameter specifying which type of strings to return. Valid categories are mobs, general, items, biomes and achievements,

Value

data.frame containing stat IDs and corresponding descriptions/names

Note

Categories general and mobs are both extracted from the same JSON file, but I chose to put them in different datasets for calrity's sake.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# Setting options for the data URLs
options(url.strings.general         = "http://assets.wurstmineberg.de/json/strings.json")
options(url.strings.mobs            = "http://assets.wurstmineberg.de/json/mobs.json")
options(url.strings.achievements    = "http://assets.wurstmineberg.de/json/achievements.json")
options(url.strings.items           = "http://assets.wurstmineberg.de/json/items.json")
options(url.strings.biomes          = "http://assets.wurstmineberg.de/json/biomes.json")

# Collection the data
strings.general         <- getStrings(category = "general")
strings.mobs            <- getStrings(category = "mobs")
strings.achievements    <- getStrings(category = "achievements")
strings.items           <- getStrings(category = "items")
strings.biomes          <- getStrings(category = "biomes")

## End(Not run)

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