Description Usage Arguments Details Value Note See Also Examples
stats2df
converts an imported playerstats API object (list
)
to a data.frame
.
1 |
data |
A list object containing playerstats as imported by |
people |
The dataset containing the people information, defaults to using |
type |
The type of dataset: |
The object must have been imported with fromJSON
beforehand.
To work with achievement datasets, the strings.achievements data needs to be accessible.
For the API, see the Wurstmineberg Minecraft API.
A data.frame
containing playerstats
Relies on strings.biomes for achievements
data for classifications.
If you want to convert a player's stats JSON file to a data.frame
,
see readStatsFile.
Other res: readStatsFile
1 2 3 4 5 | ## Not run:
generalstats.list <- fromJSON("http://api.wurstmineberg.de/server/playerstats/general.json")
generalstats.df <- stats2df(generalstats.list)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.