extract.equivalent_shifts takes an object of class equivalent_shifts, result of function equivalent_shifts, and returns the shifts of root values for a given trait.

# S3 method for equivalent_shifts
extract(x, trait = 1, what = c("shifts_values", "root_values"), ...)

Arguments

x

an object of class equivalent_shifts, result of function equivalent_shifts

trait

the number of the trait to be extracted. Default to 1.

what

one of "shifts_values" or "root_values".

...

unused.

Value

A matrix with the values of the shifts (what = "shifts_values") or the root (what = "root_values") for the trait for each equivalent configuration. Each column is one configuration.