extreme_cases {experDesign} | R Documentation |
Select the subset of extreme cases to evaluation
Description
Subset some samples that are mostly different.
Usage
extreme_cases(pheno, size, omit = NULL, iterations = 500)
Arguments
pheno |
Data.frame with the sample information. |
size |
The number of samples to subset. |
omit |
Name of the columns of the |
iterations |
Numeric value of iterations that will be performed. |
Value
A vector with the number of the rows that are selected.
See Also
Examples
metadata <- expand.grid(height = seq(60, 80, 5), weight = seq(100, 300, 50),
sex = c("Male","Female"))
sel <- extreme_cases(metadata, 10)
# We can see that it selected both Female and Males and wide range of height
# and weight:
metadata[sel, ]
[Package experDesign version 0.4.0 Index]