genus_species_extract {algaeClassify}R Documentation

Split a dataframe column with binomial name into genus and species columns.

Description

Split a dataframe column with binomial name into genus and species columns.

Usage

genus_species_extract(phyto.df, phyto.name)

Arguments

phyto.df

Name of data.frame object

phyto.name

Character string: field in phyto.df containing species name.

Value

A data.frame with new character fields 'genus' and 'species'

Examples

data(lakegeneva)
#example dataset with 50 rows

head(lakegeneva) #need to split the phyto_name column
new.lakegeneva=genus_species_extract(lakegeneva,'phyto_name')

head(new.lakegeneva)

[Package algaeClassify version 2.0.2 Index]