% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/asc_baseline.R
\name{asc_baseline}
\alias{asc_baseline}
\title{Baseline Functional Topology of Entities}
\usage{
asc_baseline(
  traits,
  abund,
  dist_method = "gower",
  dim_retention = c("variance", "broken_stick"),
  var_tol = 0.8,
  na.rm = TRUE
)
}
\arguments{
\item{traits}{A data frame or matrix of functional traits.}

\item{abund}{A data frame or matrix of species abundances.}

\item{dist_method}{Distance metric for the trait matrix. Default is "gower".}

\item{dim_retention}{Character. Method for dimensionality reduction. Options are \code{"variance"} or \code{"broken_stick"}.}

\item{var_tol}{Numeric. Proportion of cumulative variance to retain. Default is 0.80.}

\item{na.rm}{Logical. Remove missing values? Default is TRUE.}
}
\value{
An S3 object of class \code{ascfcd_base}.
}
\description{
Calculates the absolute functional centroid (CWM), functional dispersion (FDis),
and convex hull volume (FRic) for each community or site independently.
}
\examples{
traits <- data.frame(
  Mass = c(15, 30, 60, 150, 400),
  Beak = c(10, 15, 28,  45,  85)
)
rownames(traits) <- paste0("Sp", 1:5)

abund <- rbind(
  Forest = c(0,  5, 25, 20, 10),
  Field  = c(30, 20, 10,  0,  0)
)

base <- asc_baseline(traits, abund, dist_method = "euclidean")
summary(base)

}
