splitGeoref: Separate geo-referenced records

Description Usage Arguments Details Value Note Author(s) References See Also

View source: R/splitGeoref.R

Description

Get only georeferenced records from a database downloaded from GBIF[1].

Usage

1
2
3
splitGeoref(data = NULL, rd.frmt = "readRDS", path = NULL, min.occ = 3,
  round.coord = 4, wrt.frmt = "saveRDS", save.min.occ.in = NULL,
  save.georef.in = NULL, save.ungeoref.in = NULL)

Arguments

data

Vector of characters. Name of the input file.

rd.frmt

Vector of characters. The file format to read. By default it will be read as a R object using the 'readRDS' argument, but it can be read as plain text using the 'readTXT' argument. See details.

path

Vector of characters. Path to the data file(s).

min.occ

Numeric vector. Minimal number of georeferenced occurrences for that a species can be considered. If the argument is 3, only species with 3 or more occurrences will be considered in the process.

round.coord

Integer. Number of digits to keep in coordinates.

wrt.frmt

Vector of characters. Format to save output file. By default it will be written as a R object using 'saveRDS' argument, but it can be saved as plain text using 'saveTXT' argument. See details.

save.min.occ.in

Character. Path to save the output file of species that do not fulfill the minimum required number of occurrences in the parameter min.occ. Default format is '.RDS'. Se details.

save.georef.in

Vector of characters. Path to write the output file for each species with georeferenced records.

save.ungeoref.in

Character. Path to save ungeoreferenced data, a file for each species. Default format is '.RDS'. Se details.

Details

For more details about the formats to read and/or write, see readAndWrite function.

The headers of the input file must follow the Darwin Core standard [2]. The user can see the guide using data('ID_DarwinCore) command.

Value

By each species, if this is the case, two output files data.frame class: The first one have the georeferenced and the second one have the ungeoreferenced

Note

See: R-Alarcon V. and Miranda-Esquivel DR.(submitted) geocleaMT: An R package to cleaning geographical data from electronic biodatabases.

Author(s)

R-Alarcon Viviana and Miranda-Esquivel Daniel R.

References

[1] Global Biodiversity Information Facility. Available online at http://www.gbif.org/.

[2] Wieczorek, J. et al. 2012. Darwin core: An evolving community-developed biodiversity data standard. PloS One 7: e29715.

See Also

readAndWrite


Dmirandae/geocleaMT-1 documentation built on Nov. 18, 2019, 6:26 p.m.