Description Arguments Value Author(s) See Also Examples
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
.
candidate |
The candidate for which a description is to be returned. |
data |
It is the object of type |
The function race.describe
should return an object
describing the selected candidate. Such object will be printed by
race
through the function print
.
Mauro Birattari
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)})
|
function (candidate, data)
return(data$candidates[candidate, ])
<environment: 0x3318540>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.