iucnn_prepare_phy: Prepare Phylogenetic Eigenvectors to Extract Phylogenetic...

View source: R/iucnn_prepare_phy.R

iucnn_prepare_phyR Documentation

Prepare Phylogenetic Eigenvectors to Extract Phylogenetic Features

Description

Extract Phylogenetic Eigenvectors to represent the phylogenetic relationship in a matrix format for use as NN features.

Usage

iucnn_prepare_phy(phy, variance_fraction = 0.8, numeigen = NULL)

Arguments

phy

phylogenetic te in phylo format

variance_fraction

select number of Eigenvalues that cumulative explain a specified fraction of variance

numeigen

select the number eigenvalues

Value

a matrix of phylogenetic Eigenvectors

See Also

Other Feature preparation: iucnn_bias_features(), iucnn_biome_features(), iucnn_climate_features(), iucnn_cnn_features(), iucnn_footprint_features(), iucnn_geography_features(), iucnn_phylogenetic_features(), iucnn_prepare_features()

Examples

## Not run: 
library(ape)
tree <- rphylo(n = 10, birth=0.1, death=0)
iucnn_prepare_phy(phy = tree)

## End(Not run)

azizka/IUCNN documentation built on March 29, 2024, 9:38 a.m.