cal.WI: Calculate Wasilewska Index (WI)

cal.WIR Documentation

Calculate Wasilewska Index (WI)

Description

This function calculates the Wasilewska Index (WI) for ecological communities.

Usage

cal.WI(data, ...)

## S3 method for class 'data.frame'
cal.WI(data, ...)

## S3 method for class 'matrix'
cal.WI(data, ...)

## Default S3 method:
cal.WI(data, ...)

Arguments

data

data.frame or matrix. The nematode abundance table where rows represent samples and columns represent nematode genera. Each element indicates the count of a specific nematode genus in the corresponding sample. Row names must be sample names, and column names must be nematode genus names.

...

Additional arguments (currently unused).

Value

A data frame with two columns:

Sample.ID

Character vector of sample identifiers (from row names of data)

WI

Wasilewska Index for each sample

Examples

# Example with a data frame
df <- data.frame(
  Cephalobus = c(10, NA, 15),
  Caenorhabditis = c(5, 10, NA),
  Pratylenchus = c(8, 12, 10),
  row.names = c("A", "B", "C")
)
cal.WI(data = df)

Nematode documentation built on Aug. 21, 2025, 5:58 p.m.

Related to cal.WI in Nematode...