factor_count: Batting record count

Description Usage Arguments Value Examples

View source: R/factor_count.R

Description

This function counts the number of batting records you put in.

Usage

1
factor_count(data, record_factor)

Arguments

data

KBO batter data

record_factor

This is the category of batting to find, and it should be a string type.

Value

Sum of the batter records in every innings

Examples

1
2
3
4
5
## internal function
lee <- find_player(hanhwa_batter_2018,"<ec><9d><b4><ec><9a><a9><ea><b7><9c>",NULL)
inning <- c('one','two','three','four','five','six','seven','eight','nine','ten','eleven','twelve')
inning_data <- subset(lee,select=inning)
factor_count(data=inning_data,record_factor="10")

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