getGroupName: Convert strain name to its group name e.g. 'Bacteroides.1'...

Description Usage Arguments Value

View source: R/getGroupName.R

Description

Convert strain name to its group name e.g. 'Bacteroides.1' becomes 'Bacteroides'

Usage

1
getGroupName(xname, microbeNames)

Arguments

xname

a string (may be strain name or something else)

microbeNames

vector of strings of microbial group names

Value

group name (string) if xname is a strain name. If xname is not a the name of a strain it will simply return xname unchanged.


HelenKettle/microPop documentation built on May 18, 2019, 9:15 p.m.