scoreboard: Make scoreboard dataframe

Description Usage Arguments Value Examples

View source: R/scoreboard.R

Description

This function creates a scoreboard for that information based on json data and gameid.

Usage

1
scoreboard(jsondata, gameid)

Arguments

jsondata

You can try the function by importing the file from the json_sample folder. Alternatively, you can create a json-formatted KBO data file by referring to the Readme file.

gameid

KBO game date and versus infomation, You can get this information by importing the name of the json file.

Value

gameid's baseball game appears as a scoreboard data frame.

Examples

1
2
3
4
## not run
## This example does not run the example because it requires a json file.
# jsondata <- jsonlite::fromJSON("./json_sample/Hanhwa_normalseason_2018.json")
# scoreboard(jsondata,names(jsondata)[1])

choosunsick/kbodatamining documentation built on May 18, 2019, 1:30 p.m.