collectorList: Generates a collector list

Description Usage Arguments Details Value Author(s) Examples

View source: R/collectorList.R

Description

This function will generate a txt file with a collector list for all species in data.

Usage

1
2
collectorList(data = data, filename = "collector_list.txt", 
paragraphs = TRUE)

Arguments

data

data.frame

filename

character

paragraphs

logical

Details

It requires a data.frame with five columns, ordered as species, collector name, collector number, herbarium acronym and herbarium number. Herbarium columns are only used if any collector number is missing (NA). Thus, if there is no missing values in collector number, then the herbarium columns might be empty.

Value

Exports a txt file.

Author(s)

Marcelo Reginato

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## loading the example data

data(monographaR_examples)
monographaR_examples$collectorList -> 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")

collectorList(data, filename = "", paragraphs = TRUE)

## or a second option

collectorList(data, filename = "", paragraphs = FALSE)

monographaR documentation built on Oct. 23, 2020, 8:05 p.m.