View source: R/genus_species_extract.r
genus_species_extract | R Documentation |
Split a dataframe column with binomial name into genus and species columns.
genus_species_extract(phyto.df, phyto.name)
phyto.df |
Name of data.frame object |
phyto.name |
Character string: field in phyto.df containing species name. |
A data.frame with new character fields 'genus' and 'species'
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.