clean_records: Creating a summary file of counts of germplasm, herbarium and...

Description Usage Arguments Value References Examples

View source: R/clean_records.R

Description

Creates a summary file of counts of germplasm, herbarium as well split records in csv files per species to allow calculate all indicators provided by GapAnalysisR R package

Usage

1
clean_records(Workspace, species_csv, species_list, run_version)

Arguments

Workspace

A forder where the pipeline will be executed

species_csv

CSV file name located at /Workspace/parameters/input to be splitted

species_list

A list of species to be analyzed

run_version

The version of the analysis used (e.g 'v1')

Value

It returns a raster file saved in /Workspace/parameters/input to be used to calculate ex-situ conservation indicators

References

Khoury, C. K., Amariles, D., Soto, J. S., Diaz, M. V., Sotelo, S., Sosa, C. C., … Jarvis, A. (2019). Comprehensiveness of conservation of useful wild plants: An operational indicator for biodiversity and sustainable development targets. Ecological Indicators. https://doi.org/10.1016/j.ecolind.2018.11.016

Examples

1
2
3
4
5
6
7
clean_records(Workspace,species_csv,species_list,run_version)

 dir  <-  'E:/CIAT/workspace/Workspace_test'
 run_version  <- 'v1'
 species_csv <- 'Cucurbita_CWR_2019_09_30.csv'

 x <- clean_records(Workspace,species_csv,species_list,run_version)

dcarver1/gapAnalysisR documentation built on Feb. 29, 2020, 12:13 p.m.