delPointsOrSp: Delete some/all records of a given species

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

View source: R/deltPointOrSp.R

Description

The area of interest is framed as the four coordinates (North, South, West and East), if the species has some points outside of this area the user will be asked to decide whether delete the point or delete the species.

Usage

1
2
3
delPointsOrSp(data = NULL, rd.frmt = "readRDS", path = NULL,
  west = -120, east = -65, south = -30, north = 30, plot.distrib = T,
  wrt.frmt = "saveRDS", save.file = 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 input file.

west

Numeric vector. Western coordinate in decimal longitude format.

east

Numeric vector. Eastern coordinate in decimal longitude format.

south

Numeric vector. Southern coordinate in decimal latitude format.

north

Numeric vector. Northern coordinate in decimal latitude format.

plot.distrib

Logical vector. If 'TRUE', the distribution of the species will be plotted in red on a world map.

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

Vector of characters. Path to the output file for each species.

Details

The headers of the input file must follow the Darwin Core standard [1]. The user can see the guide using data('ID_DarwinCore) command. For more details about the formats to read and/or write, see readAndWrite function.

Value

A file for each species as data frame class.

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.