wcvp_checklist {rWCVP} | R Documentation |
Generate a species checklist from WCVP
Description
Generate a species checklist from WCVP
Usage
wcvp_checklist(
taxon = NULL,
taxon_rank = c("species", "genus", "family", "order", "higher"),
area_codes = NULL,
synonyms = TRUE,
render_report = FALSE,
native = TRUE,
introduced = TRUE,
extinct = TRUE,
location_doubtful = TRUE,
hybrids = FALSE,
infraspecies = TRUE,
report_filename = NULL,
report_dir = NULL,
report_type = c("alphabetical", "taxonomic"),
wcvp_names = NULL,
wcvp_distributions = NULL
)
Arguments
taxon |
Character. Taxon to be included. Defaults to NULL (no taxonomic filter; all taxa). |
taxon_rank |
Character. One of "species", "genus", "family", "order" or "higher", giving the rank of the value/s in |
area_codes |
Character. One or many WGSPRD level 3 region codes. Defaults to |
synonyms |
Logical. Include synonyms in checklist (see Details)? Defaults to |
render_report |
Logical. Render the checklist as a markdown report? Defaults to |
native |
Logical. Include species occurrences not flagged as introduced, extinct or doubtful? Defaults to |
introduced |
Logical. Include species occurrences flagged as introduced? Defaults to |
extinct |
Logical. Include species occurrences flagged as extinct? Defaults to |
location_doubtful |
Logical. Include species occurrences flagged as |
hybrids |
Logical. Include hybrid species in checklist? Defaults to |
infraspecies |
Logical. Include hybrid species in checklist? Defaults to |
report_filename |
Character. Name for the HTML file. Defaults to taxon_area_type.html |
report_dir |
Character. Directory for the HTML file to be saved in. Must be provided by user. |
report_type |
Character; one of "alphabetical" (the default) or "taxonomic". Should the generated checklist be sorted alphabetically, or by taxonomic status? |
wcvp_names |
A data frame of taxonomic names from WCVP version 7 or later.
If |
wcvp_distributions |
A data frame of distributions from WCVP version 7 or later.
If |
Details
The synonyms
argument can be used to limit names to those that are Accepted. If synonyms = TRUE
then invalid, illegitimate and other non-accepted names are also included (i.e., the checklist is not limited to names for which taxon_status == "Synonym"
).
Two styles of checklist are supported in rWCVP
- alphabetical and taxonomic.
In an alphabetical checklist, all names are arranged alphabetically with accepted names in bold, and synonyms are followed by their accepted name.
For a taxonomic checklist, names are grouped by their accepted names, and synonyms are listed beneath. Both types of checklist include author, publication and distribution information, though note that family headings are only supported in alphabetical checklists (due to the additional grouping requirement of the taxonomic format).
Value
Data frame with filtered data and, if render_report=TRUE
. a report HTML file.
Examples
# These examples take >10 seconds to run and require 'rWCVPdata'
if(requireNamespace("rWCVPdata")){
wcvp_checklist(taxon = "Myrtaceae", taxon_rank = "family", area = get_wgsrpd3_codes("Brazil"))
wcvp_checklist(taxon = "Ferns", taxon_rank = "higher", area = get_wgsrpd3_codes("New Zealand"))
}