cutRange: Species on a specific elevation range

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

View source: R/cutRange.R

Description

Get species distributed on a specific range of altitude.

Usage

1
2
3
cutRange(data = NULL, path = NULL, rd.frmt = "readRDS", range.from = 0,
  range.to = 1000, wrt.frmt = "saveRDS", save.inside.in = NULL,
  save.outside.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. 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.

range.from

Numeric vector. Lower bound of the range of the distribution

range.to

Numeric vector. Upper bound of the range of the distribution.

wrt.frmt

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

save.inside.in

Vector of characters. Path to the output file with the species whose occurrences are on the range assigned in range.from to range.to parameters. Output file will be called <inside.range>.

save.outside.in

Vector of characters. Path to the output file with the species whose occurences are not on the range assigned in range.from and range.to parameters. Output file will be called <outside.range>.

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

A table data.frame class with only the species whose occurences is on range assigned in range.from and range.to parameters, and a vector with a table with descriptive quantities.

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.