parse_taxa: Parsing scientific names for a species

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/parse_taxa.R

Description

Parsing scientif names to FAMILY,GENUS, SPECIES, AUTHOR_OF_SPECIES, INFRASPECIFIC_RANK, INFRASPECIFIC_EPITHET, AUTHOR_OF_INFRASPECIFIC_RANK

Usage

1
parse_taxa(taxa)

Arguments

taxa

A string representing scientific name

Details

This functions finds the gaps in the scientific name, and parse the name to GENUS, SPECIES, AUTHOR_OF_SPECIES, INFRASPECIFIC_RANK, INFRASPECIFIC_EPITHET, AUTHOR_OF_INFRASPECIFIC_RANK. There may be errors in parsing scientific name with "f.".

Value

A dataframe containing the following columns TAXON_PARSED, GENUS_PARSED, SPECIES_PARSED, AUTHOR_OF_SPECIES_PARSED, INFRASPECIFIC_RANK_PARSED, INFRASPECIFIC_EPITHET_PARSED, AUTHOR_OF_INFRASPECIFIC_RANK_PARSED

Author(s)

Jinlong Zhang jinlongzhang01@gmail.com

See Also

See Also as fill_dwc for the application of this function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
parse_taxa("Acer")
parse_taxa("Acer caudatifolium Hayata")
parse_taxa("Acer caudatifolium")
parse_taxa("Acer sp.")
parse_taxa("Acer caudatum Wall. var. multiserratum (Maxim.) Rehd.")
parse_taxa("Acer caudatum var. multiserratum (Maxim.) Rehd.")
parse_taxa("Acer caudatum Wall. var. multiserratum")
parse_taxa("Acer caudatum var. multiserratum")
parse_taxa("Acer caesium Wall. ex Brandis subsp. giraldii (Pax) E. Murr.")
parse_taxa("Acer caesium subsp. giraldii (Pax) E. Murr.")
parse_taxa("Acer caesium Wall. ex Brandis subsp. giraldii")
parse_taxa("Acer caesium subsp. giraldii")                               

############# Not a real species #############

tax <- "   Acanthodium   furcatum ( L. f. ) Nees        "
parse_taxa(tax)

taxon <- "   Acanthodium   furcatum ( L. f. ) Nees        "
parse_taxa(taxon)


tax <- "Acanthus ebracteatus var. xiamenensis (R.T.Zhang) C.Y.Wu & C.C.Hu            "
parse_taxa(tax)

tax <- "Acanthus ebracteatus subsp. xiamenensis (R.T.Zhang) C.Y.Wu & C.C.Hu          "
parse_taxa(tax)

tax <- "Acanthus ebracteatus XXXX var. xiamenensis (R.T.Zhang) C.Y.Wu & C.C.Hu       "
parse_taxa(tax)

tax <- "Acanthus ebracteatus XXXX f. subsp. xiamenensis (R.T.Zhang) C.Y.Wu & C.C.Hu  "
parse_taxa(tax)

tax <- "Acanthus ebracteatus XXXX  subsp. xiamenensis (R.T.Zhang) C.Y.Wu & C.C.Hu f. "
parse_taxa(tax)

tax <- "Acanthus ebracteatus XXXX f. subsp. xiamenensis (R.T.Zhang) C.Y.Wu & C.C.Hu  "
parse_taxa(tax)

tax <- "Acanthodium furcatum f. variagata Nees      "
parse_taxa(tax)

tax <- "Acanthodium furcatum (L. f. ) Nees          "
parse_taxa(tax)

tax <- "Acanthus ebracteatus subsp. ebracteatus"
parse_taxa(tax)

helixcn/herblabel documentation built on March 31, 2021, 5:45 a.m.