Matchup: Matchup

MatchupR Documentation

Matchup

Description

Matchup Class

Format

An R6Class generator object

Public fields

batter

Player

pitcher

Player

atmosphere

Atmosphere

state

State

date

Date character [optional]

Methods

Public methods


Method new()

Usage
Matchup$new(batter, pitcher, atmosphere, state, date = NULL, ...)

Method toJSON()

Usage
Matchup$toJSON()

Method fromJSON()

Usage
Matchup$fromJSON(MatchupJson)

Method toJSONString()

Usage
Matchup$toJSONString()

Method fromJSONString()

Usage
Matchup$fromJSONString(MatchupJson)

Method clone()

The objects of this class are cloneable with this method.

Usage
Matchup$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.