text_get_scientific_names: Function to pull scientific names from text

View source: R/findscientificnames.R

text_get_scientific_namesR Documentation

Function to pull scientific names from text

Description

This takes a string of text and extracts any scientific names in the text. Other words in the text are ignored.

Usage

text_get_scientific_names(text)

Arguments

text

The text string to extract names from

Value

A data.frame of scientific names and other data from GNRD

Examples

text <- "Formica polyctena is a species of European red wood ant in
   the genus Formica. The pavement ant, Tetramorium caespitum
   is an ant native to Europe."
print(text_get_scientific_names(text))

phylotastic/rphylotastic documentation built on Aug. 22, 2023, 9:51 p.m.