Learn R Programming

mmodely (version 0.2.5)

gs.check: 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='[ _\\.]')

Value

None

Arguments

genus.species

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

sep

a regular expression between genus and species

Examples

Run this code

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='[ _\\.]')

Run the code above in your browser using DataLab