R: Extract the shifts values for one trait.

extract.equivalent_shifts {PhylogeneticEM} | R Documentation

## Extract the shifts values for one trait.

### Description

`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.

### Usage

    ## S3 method for class '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.

### See Also

`equivalent_shifts`, `plot.equivalent_shifts`, `equivalent_shifts_edges`

[Package PhylogeneticEM version 1.1.0 Index]