gs.check {mmodely}R Documentation

Check "Genus species" name formatting

Description

This convienience function checks to make sure that all of the elements the provided character vector adhere to the "Genus species" naming convention format. Default delimiters between genus and species names in the string are " ", "_", or "."

Usage

gs.check(genus.species, sep='[ _\\.]')

Arguments

genus.species

a vector of character strings specifiying the combination of Genus [and] species

sep

a regular expression between genus and species

Value

None

Examples


path <- system.file("extdata","primate-example.data.csv", package="mmodely")
gs.tab <- read.csv(path, row.names=1)
gs.tab$gn_sp <- rownames(gs.tab)

gs.check(genus.species=gs.tab$gn_sp, sep='[ _\\.]')


[Package mmodely version 0.2.5 Index]