race.describe: Describe a candidate

Description Arguments Value Author(s) See Also Examples

Description

The function

1
race.describe(candidate,data)

may be provided by the user for giving a description of a candidate. It's definition has to be given in the same file in which the functions race.wrapper and race.info are defined. The name of such file has to be passed as first argument to the function race.

Arguments

candidate

The candidate for which a description is to be returned.

data

It is the object of type list (possibly empty) returned by race.init, if the latter is defined by the user.

Value

The function race.describe should return an object describing the selected candidate. Such object will be printed by race through the function print.

Author(s)

Mauro Birattari

See Also

race, race.init

Examples

1
2
3
4
5
6
# Please have a look at the function `race.describe'
# defined in the file `example-wrapper.R':
local({
  source(file.path(system.file(package="race"),
                           "examples","example-wrapper.R"),local=TRUE);
  print(race.describe)})

Example output

function (candidate, data) 
return(data$candidates[candidate, ])
<environment: 0x3318540>

race documentation built on May 29, 2017, 12:03 p.m.

Related to race.describe in race...