All parameters except path and notes can be of length 1, or the length of the list of input tables.

write_pzfx(
  x,
  path,
  row_names = TRUE,
  x_col = NA,
  x_err = NA,
  n_digits = 2,
  notes = NA,
  subcolumns = 1,
  subcolumn_suffix = ""
)

Arguments

x

Data frame or named list of data frames to include as Prism tables.

path

Path to output file.

row_names

Logical or logical vector: include row names as row titles?

x_col

Column index or name(s) for X column (0 or NA for none).

x_err

Column index or name(s) for X error (0 or NA for none).

n_digits

Number of decimal places to display for numeric data. Default: 2.

notes

Notes table(s) with columns Name and Value. Default: NA (empty notes).

subcolumns

Number of subcolumns for Y data, or "SDN" for mean/SD/N format. Default: 1.

subcolumn_suffix

Regex or string identifying grouped subcolumns (e.g., "_[0-9]+$" to group A_1, A_2 as column A). Default: "" (no grouping).

Value

Invisibly returns `x`.