Learn R Programming

MorphSim (version 0.1.0)

stats.morpho: Calculates statistics for a morpho object

Description

Computes three key pieces of information for a morpho object: 1. The Consistency Index (CI) and Retention Index (RI) based on the tip sequence data. 2. Convergent traits, identifying traits that have evolved independently multiple times. 3. Summary information about the size and structure of the tree.

Usage

stats.morpho(data)

Value

A list with three elements: - Statistics: data.frame with CI and RI - Convergent_Traits: data.frame listing convergent traits - Tree: data.frame summarizing extant/extinct tips and sampled ancestors

Arguments

data

A morpho object

Examples

Run this code
data(morpho_data)
summary <- stats.morpho(data = morpho_data)

Run the code above in your browser using DataLab