Learn R Programming

PSRICalc (version 1.0.0)

calculate_psri: Calculate Plant Stress Response Index (PSRI)

Description

This function calculates the Plant Stress Response Index from time-series germination data with optional radicle vigor integration.

Usage

calculate_psri(
  germination_counts,
  time_points = c(3, 5, 7),
  total_seeds,
  species,
  radicle_summary = NULL,
  diseased_counts = NULL
)

Value

A list containing PSRI components and metrics

Arguments

germination_counts

Numeric vector of cumulative germination counts at each time point (length 3 for days 3, 5, 7)

time_points

Numeric vector of time points in days (default: c(3, 5, 7))

total_seeds

Integer, total number of seeds in the replicate

species

Character string, species name for identification

radicle_summary

Optional list containing radicle data

diseased_counts

Optional numeric vector of diseased seed counts

References

Walne, C.H., Gaudin, A., Henry, W.B., and Reddy, K.R. (2020). In vitro seed germination response of corn hybrids to osmotic stress conditions. Agrosystems, Geosciences & Environment, 3(1), e20087. tools:::Rd_expr_doi("10.1002/agg2.20087")

Examples

Run this code
result <- calculate_psri(
  germination_counts = c(5, 8, 10),
  time_points = c(3, 5, 7),
  total_seeds = 15,
  species = 'corn'
)
print(result$PSRI)

Run the code above in your browser using DataLab