Write a formatted "count within" summary table to a sheet in an Excel workbook.

write_count_within_sheet(
  wb,
  stats,
  sheet_name = "Count Within",
  sheet_title = "Count of cells within the specified radius"
)

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.