team_batter_boxscore: The batter box score of the team

Description Usage Arguments Value Examples

View source: R/team_batter_boxscore.R

Description

This function creates annual or periodical box score of the team batting This function has options called 'yearly' or 'monthly'. default: The team's annual box score is created. If you put a year in the yearly parameter, it calculates the box score of corresponding year. If you put a month in the monthly parameter, it calculates the corresponding 'monthly' box score of every year. If you put a year and a month in each parameters, the box score of corresponding month you put in is created.

Usage

1
2
team_batter_boxscore(data = kbodatamining::hanhwa_batter_2018, teamname,
  yearly = NULL, monthly = NULL)

Arguments

data

'Hanhwa_batter_2018' is default data. You can put another kbo batter data if you want.

teamname

The name of team you want

yearly

The default value is NULL. Possible value is a specific year.

monthly

The default value is NULL. Possible value is a specific month. The monthly parameter is a string type.

Value

The team batting box score of the year or month put in is created.

Examples

1
2
3
4
5
6
7
8
## Example default: yearly=NULL, monthly=NULL
team_batter_boxscore(data=hanhwa_batter_2018,teamname="<ed><95><9c><ed><99><94>")
## yearly=2018, monthly=NULL
team_batter_boxscore(data=hanhwa_batter_2018,teamname="<ed><95><9c><ed><99><94>",yearly=2018)
## yearly=NULL, monthly="05"
team_batter_boxscore(data=hanhwa_batter_2018,teamname="<ed><95><9c><ed><99><94>",monthly="05")
## yearly=2018, monthly="05"
team_batter_boxscore(data=hanhwa_batter_2018,teamname="<ed><95><9c><ed><99><94>",yearly=2018,monthly="05")

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