Learn R Programming

BioThermR (version 0.1.0)

compile_batch_stats: Compile Batch Statistics into a Tidy Data Frame

Description

Iterates through a list of 'BioThermR' objects, extracts the pre-calculated statistics (from analyze_thermal_stats), and aggregates them into a single summary data frame. This function transforms the nested list structure into a flat, tabular format (Tidy Data) suitable for downstream statistical analysis (ANOVA, t-test) or visualization.

Usage

compile_batch_stats(img_list)

Value

A data.frame where:

  • Rows represent individual images.

  • Columns include 'Filename' and all metrics computed by analyze_thermal_stats (e.g., Min, Max, Mean, Median, SD, IQR, CV, Peak_Density).

Arguments

img_list

A list of 'BioThermR' objects (typically the output of a batch processing workflow). Note: analyze_thermal_stats must be run on these objects first to populate the 'stats' slot.

Examples

Run this code
# \donttest{
# 1. Import and Process
img_obj_list <- system.file("extdata",package = "BioThermR")
img_list <- read_thermal_batch(img_obj_list)
img_list <- lapply(img_list, analyze_thermal_stats)

# 2. Compile Results
df_results <- compile_batch_stats(img_list)
# }

Run the code above in your browser using DataLab