create_buffers: Creating buffer around germplasm accessions extracted from a...

Description Usage Arguments Value References Examples

Description

Creates a raster using circular buffer around germplasm accessions for a given species using a CSV file and the R packages fasterize and geobuffer

Usage

1
create_buffers(species, Workspace, buff_dist, run_version)

Arguments

species

A name species compiled using '_' to call occurrences files from Workspace/parameter/occurrences folder

Workspace

A forder where the pipeline will be executed

buff_dist

Distance around germplasm accessions geographical coordinates in km^2

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
 8
 9
10
create_buffers(species,Workspace,buff_dist,run_version)

 dir  <-  'E:/CIAT/workspace/Workspace_test'
 run_version  <- 'v1'
 species_list <- c('Cucurbita_cordata',
  'Cucurbita_digitata',
  'Cucurbita_foetidissima',
  'Cucurbita_palmata')

 x <- create_buffers(species,Workspace,buff_dist,run_version)

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