Learn R Programming

exsic (version 1.0)

exsic: Creates three botanical indices (exsiccatae or index of specimens; numerical list of species; index to numbered collections).

Usage

exsic(data, file = NULL, html = "exsic.html",
    sortfilter = NULL, format = format.SBMG,
    headers = c("Citations of Specimens", "Numerical List of Species", "Index to Numbered Collections", "*The numbers in parentheses refer to the corresponding species in the Numerical List of Species.*"))
data{a table in exsic format}

file{Path to the .csv file containing the database}

html{Path to the resulting .html file}

sortfilter{a table containing filters for country and species}

format{a table containing format options for elements in the exsiccatae index}

headers{A list of text lines for labeling the indices}

boolean TRUE if all steps executed successfully It uses a data.frame expecting a minimum set of columns; if those are not found they will be added and filled with 'unknown' or similar values as will be other columns with missing data but used for sorting the final indices. # Example library(exsic)

########################################################### # This runs the example file

# Read input file df = system.file("samples/exsic.csv", package="exsic") # read only first 10 records data = read.exsic(df)[1:10,]

# Prepare output file td = tempdir() of = file.path(td,"out.html")

# Example 1: mostly default parameters # Prepare exsiccatae indices exsic(data, html = of)

# Example 2: using another format of = file.path(td,"out_PK.html") exsic(data, html = of, format = format.PK)

[object Object] Other main: index.citations, index.collections, index.countries, index.species, index.species.short, prepare.table, read.exsic, section.exsic, write.exsic

Arguments