View source: R/write.srh.kway.full.tsv.R
write.srh.kway.full.tsv | R Documentation |
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.
write.srh.kway.full.tsv(
obj,
file = "srh_kway_full.tsv",
sep = "\t",
na = "",
dec = "."
)
obj |
A list produced by |
file |
Path to the output TSV file. Default |
sep |
Field separator (default tab |
na |
String to use for missing values (default empty string). |
dec |
Decimal mark for numbers: dot |
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.
(Invisibly) the normalized path to file
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.