check_where_hit: Checks where the coordinates of a dart lands on the dartboard...

Description Usage Arguments Value

View source: R/check_where_hit.R

Description

Checks where the coordinates of a dart lands on the dartboard in terms of which scoring wedge it hits.

Usage

1
check_where_hit(x, y, db)

Arguments

x

is the 'x' coordinate of the shot

y

is the 'y' coordinate of the shot

db

is a dartbaord object created from the 'dartboard' package.

Value

the name of the location of where the shot landed (e.g., Treble 20)


chringer-git/cricketmodel documentation built on Sept. 9, 2019, 5:06 p.m.