set_uncertainty {nichevol}R Documentation

Set values of uncertainty towards one or both ends of the variable

Description

set_uncertainty allows to define uncertainty ("?") values around values denoting presence ("1") towards one or both ends of the variable in a table of binary characters.

Usage

set_uncertainty(character_table, species, end)

Arguments

character_table

a matrix of characters to represent ecological niches of the species of interest. A matrix containing values "1" = presence, "0" = absence, and "?" = uncertain. See bin_table.

species

(character) name of the species in the table for which values of uncertainty will be set.

end

(character) end towards which uncertainty values ("?") will be set. Options are: "high", "low", or "both".

Details

Values of characters around those denoting presence ("1") are manually transformed to uncertain ("?") to help producing more conservative reconstructions of ancestral ecological niches. This increases uncertainty in reconstructions and further niche comparisons, which reduces the events of niche change that can be detected. This may be especially useful when dealing with species with one or just a few known records.

Value

A modified matrix of characters to represent ecological niches of the species of interest.

Potential values for characters are:

Examples

# a character table
data("character_table", package = "nichevol")

character_table[, 20:28]

# set values of uncertainty towards the lower end of the variable for species t3
char_tableu <- set_uncertainty(character_table, species = "t2", end = "low")

char_tableu[, 20:28]

[Package nichevol version 0.1.20 Index]