Learn R Programming

taxotools (version 0.0.139)

taxo2DwC: Taxolist to Darwin Core (DwC)

Description

Converts a taxolist to Darwin Core format

Usage

taxo2DwC(taxolist, verbose = TRUE)

Value

returns a taxonomic list in DwC format

Arguments

taxolist

taxolist

verbose

verbose output, Default: TRUE

Details

Converts a taxolist to Darwin Core format

See Also

Other List functions: DwC2taxo(), cast_cs_field(), compact_ids(), get_synonyms(), match_lists(), melt_cs_field(), merge_lists(), syn2taxo(), synonymize_subspecies(), taxo2doc(), taxo2syn(), wiki2taxo()

Examples

Run this code
# \donttest{
mytaxo <- data.frame("id" = c(1,2,3,4,5,6,7),
                    "canonical" = c("Hypochlorosis ancharia",
                                    "Hypochlorosis tenebrosa",
                                    "Pseudonotis humboldti",
                                    "Myrina ancharia",
                                    "Hypochlorosis ancharia tenebrosa",
                                    "Hypochlorosis ancharia obiana",
                                    "Hypochlorosis lorquinii"),
                     "family" = c("Lycaenidae", "Lycaenidae", "Lycaenidae",
                                  "Lycaenidae", "Lycaenidae", "Lycaenidae",
                                  "Lycaenidae"),
                    "accid" = c(0,1,1,1,0,0,0),
                    "source" = c("itis","itis","wiki","wiki","itis",
                                 "itis","itis"),
                    stringsAsFactors = FALSE)
mysynlst <- taxo2DwC(mytaxo)
# }

Run the code above in your browser using DataLab