Game: Game

GameR Documentation

Game

Description

Game Class

Format

An R6Class generator object

Public fields

home_lineup

Lineup

visit_lineup

Lineup

atmosphere

Atmosphere

date

Date character [optional]

Methods

Public methods


Method new()

Usage
Game$new(home_lineup, visit_lineup, atmosphere, date = "2019-09-29", ...)

Method toJSON()

Usage
Game$toJSON()

Method fromJSON()

Usage
Game$fromJSON(GameJson)

Method toJSONString()

Usage
Game$toJSONString()

Method fromJSONString()

Usage
Game$fromJSONString(GameJson)

Method clone()

The objects of this class are cloneable with this method.

Usage
Game$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


singlearity-sports/singlearity-R documentation built on April 21, 2022, 3:48 a.m.