taxo2doc | R Documentation |
Converts a taxolist to a formatted document in html, pdf or word document
taxo2doc( taxolist = NULL, genus = NA, family = NA, title = "", addsource = TRUE, mastersource = "", duplicatesyn = TRUE, sourcecol = c("black", "blue"), outformat = "html_document", outdir = ".", outfile = "taxolist.html" )
taxolist |
taxolist |
genus |
only process for specific genus. Default("") implying process all |
family |
only process for specific family. Default("") implying process all |
title |
List title you want to print in output header |
addsource |
boolean If the source tag should be displayed. Default TRUE |
mastersource |
source string for the master list |
duplicatesyn |
boolean if synonyms should to displayed in their alphabetical sorted position too. Dafault TRUE |
sourcecol |
vector of text color values for each source value |
outformat |
output format one of "html_document", "word_document", "odt_document", "rtf_document", "pdf_document". Default ("html_document") |
outdir |
output directory for the document. Default (".") |
outfile |
output file name. Dedfaout ("taxolist.html") |
Converts a taxolist to a formatted document in html, pdf or word document making it easy for taxonomist to read through the data
NULL Saves a document file
Other List functions:
DwC2taxo()
,
cast_cs_field()
,
compact_ids()
,
get_synonyms()
,
match_lists()
,
melt_cs_field()
,
merge_lists()
,
syn2taxo()
,
synonymize_subspecies()
,
taxo2DwC()
,
taxo2syn()
,
wiki2taxo()
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) taxo2doc(mytaxo) taxo2doc(mytaxo,source="My list")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.