set_taxonomicCoverage: set_taxonomicCoverage

Description Usage Arguments Details Value Note Examples

View source: R/set_coverage.R

Description

set_taxonomicCoverage

Usage

1

Arguments

sci_names

string (space seperated) or list or data frame of scientific names for species covered.

Details

Turn a data.frame or a list of scientific names into a taxonomicCoverage block sci_names can be a space-separated character string or a data frame with column names as rank name or a list of user-defined taxonomicClassification

Value

a taxonomicCoverage object for EML

Note

If "sci_names" is a data frame, column names of the data frame are rank names. For user-defined "sci_names", users must make sure that the order of rank names they specify is from high to low. Ex. "Kingdom","Phylum","Class","Order","Family","Genus","Species","Common"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
taxon_coverage <-
 set_taxonomicCoverage(list(KINGDOM="Plantae",
                            PHYLUM="Phaeophyta",
                            CLASS="Phaeophyceae",
                            ORDER="Laminariales",
                            FAMILY="Lessoniaceae",
                            GENUS="Macrocystis",
                            genusSpecies="Macrocystis pyrifera",
                            commonName="MAPY"))

df <- data.frame(KINGDOM="Plantae",
                 PHYLUM="Phaeophyta",
                 CLASS="Phaeophyceae",
                 ORDER="Laminariales",
                 FAMILY="Lessoniaceae",
                 GENUS="Macrocystis",
                 genusSpecies="Macrocystis pyrifera",
                 commonName="MAPY")
taxon_coverage <- set_taxonomicCoverage(df)

clnsmth/EML103 documentation built on May 22, 2019, 5:32 p.m.