
Create collection longevity module
create_sustainability_report.RdThe age of the collection and probability of survival in the collection.
Usage
create_sustainability_report(
enriched_report,
collection = NULL,
wgsrpd3 = NULL,
PlantClassification_filepath = NULL,
coordinates = NA,
output_dir = NULL,
native = "Naturally occurring only",
extinct = TRUE,
doubtful_locations = FALSE,
earliest_allowable_record = 1700,
old_accession_year_codes = NULL,
min_year = 1970
)Arguments
- enriched_report
The enriched report of a living collection (created in BGsmartR)
- collection
The name of the living collection
- wgsrpd3
World Geographical Scheme for Recording Plant Distributions. Containing polygons of each level 3 area. Can be obtained from
rWCVPpackage.- PlantClassification_filepath
filepath to family classification. If NULL we use the default contained within BGSmartR.
- coordinates
The coordinates of the collection (long, lat).
- output_dir
The output directory
- native
string where 'Naturally occurring only' or 'Introduced only' reduces the locations used to determine native plants.
- extinct
Flag (TRUE/FALSE) for whether to include extinct geographic locations.
- doubtful_locations
Flag (TRUE/FALSE) for whether to include doubtful locations.
- earliest_allowable_record
Number, corresponding to the minimum allowable year in the "AccYear" column.
- old_accession_year_codes
Vector of numbers corresponding to values within "AccYear" that indicate that a record is old with unknown accession year. For our analyses over time we assume these records are accessioned on
earliest_allowable_record.- min_year
The minimum year for analyses over time.