create_matrix: Create a dataframe for the ancestry.

View source: R/create_matrix.R

create_matrixR Documentation

Create a dataframe for the ancestry.

Description

Create a dataframe with pairs of taxids, each taxid and their corresponding values are associated with every one of its ancestors.

Usage

create_matrix(df, cols)

Arguments

df

A dataframe containing taxids and values.

cols

The columns containing the values which needs to be inferred.

Value

A dataframe.

Examples

data(LM_eukaryotes)

create_matrix(LM_eukaryotes$df, c("GC.", "Genes"))

damiendevienne/lifemapr documentation built on April 12, 2025, 10:47 a.m.