Learn R Programming

LifemapR (version 1.1.5)

create_matrix: 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)

Value

A dataframe.

Arguments

df

A dataframe containing taxids and values.

cols

The columns containing the values which needs to be inferred.

Examples

Run this code
data(LM_eukaryotes)

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

Run the code above in your browser using DataLab