RL_elevation_check: Checks min/max elevations and recodes if min >= max

Description Usage Arguments Details Value Author(s)

View source: R/RL_elevation_check.R

Description

Checks all species' elevations and if min >= max recodes min to -99999 and max to 99999. Other options possible, see details.

Usage

1
RL_elevation_check(x, recode_val, equal_to = TRUE, verbose = FALSE)

Arguments

x

A data.frame in wide or long form, as output by RL_fetch() and RL_reformat_long() respectively.

recode_val

A numeric vector of length 1 or 2 specifying the recode values for minimum and maximum elevation values if they are incorrect. Defaults to c(-99999, 99999). NA is also a suitable input.

equal_to

A logical input. Should cases where min == max elevation also be recoded? Defaults to TRUE.

verbose

(optional) A logical input. Should species with incorrect elevation values be printed out? Defaults to FALSE.

Details

recode_val allows recoding to other values than -99999 and +99999. equal_to allows changing of min >= max to min > max only.

Value

A data.frame in the same format as the input.

Author(s)

Matt Lewis, matthewlewis896@gmail.com


matthewlewis896/redlistManipulatr documentation built on Jan. 22, 2022, 1:01 p.m.