Description Usage Arguments Details Value Author(s) Examples
View source: R/collectorList.R
This function will generate a txt file with a collector list for all species in data.
1 2 | collectorList(data = data, filename = "collector_list.txt",
paragraphs = TRUE)
|
data |
data.frame |
filename |
character |
paragraphs |
logical |
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.
Exports a txt file.
Marcelo Reginato
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.