write.srh.kway.full.tsv: Write full SRH pipeline result to a TSV file

View source: R/write.srh.kway.full.tsv.R

write.srh.kway.full.tsvR Documentation

Write full SRH pipeline result to a TSV file

Description

Exports the result of srh.kway.full into a single, tab-separated text file, in the order: ANOVA > SUMMARY > POSTHOC CELLS > SIMPLE EFFECTS > META. Supports choosing the decimal mark for numeric values.

Usage

write.srh.kway.full.tsv(
  obj,
  file = "srh_kway_full.tsv",
  sep = "\t",
  na = "",
  dec = "."
)

Arguments

obj

A list produced by srh.kway.full.

file

Path to the output TSV file. Default "srh_kway_full.tsv".

sep

Field separator (default tab "\t").

na

String to use for missing values (default empty string).

dec

Decimal mark for numbers: dot "." (default) or comma ",".

Details

Each section is preceded by a header line (e.g., ## SRH: EFFECTS TABLE). For post hoc sections, each effect/table is prefixed with a subheader (e.g., ### posthoc_cells: gender:condition). For simple-effect tables, the attribute "adjustment" (if present) is written as a comment line beginning with "# ".

Components that are not applicable (e.g., simple effects in 1-factor designs) or failed computations are written as literal one-line messages.

Value

(Invisibly) the normalized path to file.

Examples


data(mimicry, package = "factorH")
res <- srh.kway.full(liking ~ gender + condition, data = mimicry)

# Write to a temporary file (CRAN-safe)
f <- tempfile(fileext = ".tsv")
write.srh.kway.full.tsv(res, file = f, dec = ".")
file.exists(f)



factorH documentation built on Sept. 11, 2025, 9:09 a.m.