make_long_from_workbook: Detect and convert long- or wide-format workbooks

View source: R/helpers_io_long.R

make_long_from_workbookR Documentation

Detect and convert long- or wide-format workbooks

Description

Reads an XLSX workbook, identifies a worksheet in long or wide format, and converts wide-format data to long format when needed.

Usage

make_long_from_workbook(path, sheet_prefer = NULL, factors = "trat")

Arguments

path

Path to the .xlsx workbook.

sheet_prefer

Preferred worksheet, or NULL for automatic detection.

factors

Character vector of treatment-factor names.

Value

Long-format data frame with source_sheet, format, and treatment_factors attributes.


infectionIndex documentation built on Dec. 4, 2026, 5:10 p.m.