largest_eafdiff | R Documentation |
Given a list of datasets, return the indexes of the pair with the largest EAF differences according to the method proposed by \citetDiaLop2020ejor.
largest_eafdiff(data, maximise = FALSE, intervals = 5, reference, ideal = NULL)
data |
( |
maximise |
( |
intervals |
( |
reference |
( |
ideal |
( |
(list()
) A list with two components pair
and value
.
# FIXME: This example is too large, we need a smaller one.
files <- c("wrots_l100w10_dat","wrots_l10w100_dat")
data <- lapply(files, function(x)
read_datasets(file.path(system.file(package="eaf"),
"extdata", x)))
nadir <- apply(do.call(rbind, data)[,1:2], 2, max)
x <- largest_eafdiff(data, reference = nadir)
str(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.