Description Usage Arguments Value Note Examples
Get descriptive strings to complement stats datasets. Useful for human readable output such as plots or tables.
1 | getStrings(category = "general")
|
category |
A parameter specifying which type of strings to return. Valid categories are
|
data.frame
containing stat IDs and corresponding descriptions/names
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.