getPlayerSessions: Extract player sessions from server sessions

Description Usage Arguments Value Note Examples

Description

Uses the server sessions pulled by getSessions and creates a data.frame of player sessions, including the time played per person/session.

Usage

1
getPlayerSessions(sessions = NULL, splitByDay = TRUE)

Arguments

sessions

A session object as returned by getSessions

splitByDay

Should the player sessions be split by day, as to avoid overlapping sessions? Helpful for visualizations of the played time for any given day. Defaults to TRUE.

Value

data.frame with server- and lists of player sessions

Note

If sessions are split by day, additional columns for date, day of week and month are appended.

Examples

1
2
3
4
5
## Not run: 
sessions       <- getSessions("http://api.wurstmineberg.de/server/sessions/overview.json")
playerSessions <- getPlayerSessions(sessions, splitByDay = FALSE)

## End(Not run)

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