guessage {DDM}R Documentation

which age is closest to the point clicked?

Description

a utility function called by ggbChooseAges().

Usage

guessage(xvec, yvec, click, age)

Arguments

xvec

$rightterm, as given by ggbMakeColumns()

yvec

$lefttterm, as given by ggbMakeColumns()

click

a point given by locator(1)

age

ages present in dataset

Value

the age corresponding to the x,y pair of $rightterm, $lefttterm closest to the point clicked.


[Package DDM version 1.0-0 Index]