select_eigentraits: Assign selected eigentraits in the Cape object

View source: R/select_eigentraits.R

select_eigentraitsR 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 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

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

## End(Not run)


cape documentation built on May 29, 2024, 5:11 a.m.