assign_guild_ants: Assign Functional Guilds for Ants

View source: R/assign_guild_ants.R

assign_guild_antsR Documentation

Assign Functional Guilds for Ants

Description

Classifies ants into functional guilds using four different ecological databases.

Usage

assign_guild_ants(
  comm,
  verbose = TRUE,
  plot = TRUE,
  validate = TRUE,
  delay = 0.5
)

Arguments

comm

A community matrix where species are columns and samples are rows.

verbose

Logical; if TRUE, displays progress messages.

plot

Logical; if TRUE, displays guild proportion plots.

validate

Logical; if TRUE, validates species names using GBIF before analysis.

delay

Numeric; seconds to wait between GBIF API calls when validate = TRUE.

Value

Invisibly returns a list with two elements:

table

A data frame containing species, abundance, percentage, and guild assignments from each system.

plots

A list of four ggplot2 objects, one for each guild classification system.


AntClassify documentation built on Sept. 4, 2026, 1:06 a.m.