matrix2XY: Convert a species distribution matrix into a data frame of...

View source: R/utilities.R

matrix2XYR Documentation

Convert a species distribution matrix into a data frame of terminal taxa and their associated distribution.

Description

This function takes a matrix or data frame representing the presence/absence of species in different sets and converts it into a data frame where each row represents a terminal taxon and its corresponding area.

Usage

matrix2XY(distribution = distribution)

Arguments

distribution

A matrix or data frame representing the presence/absence of species in different sets. Rows represent sets and columns represent species.

Value

A data frame with two columns: "Terminal" (the species name) and "Area" (the area where the species is present).

Examples


# Convert distribution matrix to data frame
xy_df <- matrix2XY(distribution = distribution)


Dmirandae/blepd documentation built on Jan. 17, 2025, 3:08 p.m.