calcPresSpec: Calculate percentage of present species in each super taxon

View source: R/parsePhyloProfile.R

calcPresSpecR Documentation

Calculate percentage of present species in each super taxon

Description

Calculate percentage of present species in each super taxon

Usage

calcPresSpec(profileWithTax, taxaCount)

Arguments

profileWithTax

data frame of main PhyloProfile input together with their taxonomy info (see ?profileWithTaxonomy)

taxaCount

number of species occur in each supertaxon (e.g. phylum or kingdom)

Value

A data frame with

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

profileWithTaxonomy for a demo input data

Examples

# NOTE: for internal testing only
library(dplyr)
data("profileWithTaxonomy", package="PhyloProfile")
taxaCount <- profileWithTaxonomy %>% dplyr::count(supertaxon)
taxaCount$n <- 1
calcPresSpec(profileWithTaxonomy, taxaCount)

BIONF/PhyloProfile documentation built on Nov. 7, 2024, 8:31 p.m.