In tidysdm
, the string defining presences should be the first level of the
response factor. This function checks that the column is correctly formatted.
check_sdm_presence(.data, .col, presence_level = "presence")
TRUE if correctly formatted
a data.frame
or tibble
, or a derived object such as an sf
data.frame, or a factor (e.g. the column with the response variable)
the column containing the presences
the string used to define the presence level of .col