my.doubles.bad: Score Badminton Doubles Game

Description Usage Arguments Examples

Description

This function returns players' info from a serial record of pointing teams.

Usage

1
my.doubles.bad(K, p = 21)

Arguments

K

is a vector of 1 or 2.

p

is the max point of a game.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
K <- sample(1:2,42,replace=TRUE,prob=c(0.49,0.51))
K <- c(1,1,1,1,1,1,2,1,2,1,2,1,1,2,1,2,2,1,1,2,2,1,1,1,2,1,2,1,1,2,1,1)
K <- K * (-1) + 3
# The score sheet for this match : http://www.badminton.or.jp/nba/shinpan/scoresheet.pdf 
doubles.score <- my.doubles.bad(K)
doubles.score$Point.team
doubles.score$Points
doubles.score$Server.4
doubles.score$Server.side
doubles.score$Location

ryamada22/Ronlyryamada documentation built on May 28, 2019, 10:43 a.m.