Learn R Programming

experDesign (version 0.4.0)

extreme_cases: 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)

Value

A vector with the number of the rows that are selected.

Arguments

pheno

Data.frame with the sample information.

size

The number of samples to subset.

omit

Name of the columns of the pheno that will be omitted.

iterations

Numeric value of iterations that will be performed.

See Also

optimum()

Examples

Run this code
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, ]

Run the code above in your browser using DataLab