sse_states_to_endemicity: Convert SSE states back to endemicity status

View source: R/endemicity_to_sse_states.R

sse_states_to_endemicityR Documentation

Convert SSE states back to endemicity status

Description

Convert SSE states back to endemicity status

Usage

sse_states_to_endemicity(states, sse_model = "musse")

Arguments

states

integer vector of tip states, as expected by SSE models

sse_model

either "musse" (default) or "geosse". MuSSE expects state values 1, 2, 3, which here we encode as "not_present", "endemic", "nonendemic", respectively. GeoSSE expects trait values 0, 1, 2, with 0 the widespread state (here, "nonendemic"), and 1 and 2 are "not_present" and "endemic", respectively.

Value

character vector with values "endemic", "nonendemic" and/or "not_present"


DAISIEprep documentation built on April 3, 2025, 9:26 p.m.