Write a formatted nearest neighbor summary table to a sheet in an Excel workbook.

write_nearest_neighbor_summary_sheet(
  wb,
  stats,
  sheet_name = "Nearest Neighbors",
  sheet_title = "Nearest Neighbor Distances for Phenotype Pairs (microns)"
)

Arguments

wb

An openxlsx Workbook from openxlsx::createWorkbook

stats

A summary data frame.

sheet_name

Optional name for the worksheet.

sheet_title

Optional title header for the table.