usefulSp: Useful species

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

View source: R/usefulSp.R

Description

Get species with a minimum number of occurrences.

Usage

1
2
usefulSp(data = NULL, path = NULL, cut.off = 3, rd.frmt = "readRDS",
  wrt.frmt = "saveRDS", save.useful.in = NULL, save.useless.in = NULL)

Arguments

data

Vector of characters. Name of the input file.

path

Vector of characters. Path to the input file.

cut.off

Numeric. Minimal (absolute) number of occurrences for a given species, the default value is 3, as the minimal number of points to draw a polygon.

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

Character. Output file format, by default it uses a '.RDS' format, although it could save a txt table. See details.

save.useful.in

String. Output file path for useful species (those with occurrences larger than the cut.off value. See details.

save.useless.in

String. Output file path for useless species (those with occurrences smaller than the cut.off value. See details.

Details

To check input/output formats see readAndWrite. Column names must follow Darwin Core2[1] standard. See data('ID_DarwinCore).

Value

A data.frame object and a file for each 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.