checkCoord: Check coordinates

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

View source: R/checkCoord.R

Description

Separate coordinates with a format different to decimal degrees and check that the coordinates in this format are into range (latitude: -90, 90 degrees and longitude: -180, 180 degrees)

Usage

1
2
checkCoord(data = NULL, path = NULL, rd.frmt = "readRDS",
  wrt.frmt = "saveRDS", save.right.in = NULL, save.wrong.in = NULL)

Arguments

data

Vector of characters. Name of the input file.

path

Vector of characters. Path to 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.

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.right.in

Vector of characters. Path to the output file for each species with coordinates in the correct format.

save.wrong.in

Vector of characters. Path to the output file for each species with coordinates in the wrong format.

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 [1]. The user can see the guide using data('ID_DarwinCore) command.

Value

For each species, if this is the case, two output files data.frame class: The first one has the correct coordinates for the species and the second one has the wrong coordinates for the same species.

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] 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.