select_eigentraits: Assign selected eigentraits in the Cape object

Description Usage Arguments Value See Also Examples

View source: R/select_eigentraits.R

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

1
select_eigentraits(data_obj, traits_which = c(1, 2))

Arguments

data_obj

a Cape object

traits_which

A vector of integers, of at least length two specifying which eigentraits should be analyzed.

Value

updated Cape object

See Also

plot_svd

Examples

1
2
3
4
## Not run: 
data_obj <- selecct_eigentraits(data_obj, traits_which = 1:3)

## End(Not run)

cape documentation built on Feb. 10, 2021, 5:06 p.m.