Learn R Programming

monographaR (version 1.0)

examinedSpecimens: Generates an examined specimens list

Description

This function will generate a txt file with an examined specimens list.

Usage

examinedSpecimens(data, filename = "examined.txt")

Arguments

data
data.frame
filename
character

Value

  • Exports a txt file.

Details

It requires a data.frame with eight columns, ordered as: species, collector name, collector number, herbarium acronym, herbarium number, country, state and municipality.

Examples

Run this code
## loading the example data

data(monographaR_examples)
monographaR_examples$examinedSpecimens -> data
head(data)

## running the function, it will print in the terminal the output. 
## To export a txt, place a name in the filename argument
## (i.e., filename = "myoutput.txt")

examinedSpecimens(data, filename = "")

Run the code above in your browser using DataLab