select_eigentraits {cape} | R Documentation |
Assign selected eigentraits in the Cape object
Description
This function is used to identify which eigentraits will be analyzed in the Cape run. After eigentrait decomposition of n traits, there will be n eigentraits. If there are more than two eigentraits, the user may wish to analyze a subset of them. This function specifies which of the eigentraits will be analyzed by Cape. It does this by subsetting the ET matrix to only those eigentraits specified. The traits not selected are deleted from the object.
Usage
select_eigentraits(data_obj, traits_which = c(1, 2))
Arguments
data_obj |
a |
traits_which |
A vector of integers, of at least length two specifying which eigentraits should be analyzed. |
Value
updated Cape
object
See Also
Examples
## Not run:
data_obj <- selecct_eigentraits(data_obj, traits_which = 1:3)
## End(Not run)
[Package cape version 3.1.2 Index]