pf.groupsTospecies: Converts integer-indexed groups to species-labelled groups in...

View source: R/pf.groupsTospecies.R

pf.groupsTospeciesR Documentation

Converts integer-indexed groups to species-labelled groups in phylofactor object

Description

Converts integer-indexed groups to species-labelled groups in phylofactor object

Usage

pf.groupsTospecies(pf)

Arguments

pf

phylofactor class object from PhyloFactor, twoSampleFactor or gpf

Examples

library(phylofactor)
data(FTmicrobiome)
pf <- FTmicrobiome$PF
species.groups <- pf.groupsTospecies(pf)
pf$factors[1:3,]
#the otuIDs/species in factor 3, Group1 are:
species.groups[[3]][[1]]

reptalex/phylofactor documentation built on Feb. 28, 2024, 3:19 p.m.