Description Usage Arguments Details Value Examples
View source: R/jsondata2pitcherdf.R
This function changes pitcher data in json file to dataframe data
1 | json2pitcherdf(jsondata, gameid)
|
jsondata |
KBO data json file |
gameid |
KBO game date and versus infomation |
## You can read the json file in the json_sample folder and use it. ## You can use the fromJSON function of the jsonlite package to read the json file. ## You can also get the KBO full game json file. ## You can extract it from the "https://github.com/LOPES-HUFS/KBO_Data_Wrangling" project ## And working the code in the notebook file. ## If you get a json file through one of the above methods, ## you can open it and use it as an paremeter to the function. ## The gameid paremeter can be obtained using the default function names.
the pitcher dataframe data that is changed from json data file
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)
# json2pitcherdf(jsondata,names(jsondata)[1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.