export.design(design, response.names = NULL,
path = ".", filename = NULL, legend = NULL, type = "html",
OutDec = options("OutDec")$OutDec, replace = FALSE, ...)
html(object, ...)
## S3 method for class 'data.frame':
html(object, file = paste(first.word(deparse(substitute(object))),
"html", sep = "."), append = FALSE, link = NULL, linkCol = 1, bgs.col = NULL,
OutDec=options("OutDec")$OutDec, linkType = c("href", "name"), ...)
getwd()
factor.names
element of design.info(design)
"rda"
, "html"
, "csv"
, or "all"
.
An R workspace with just the design object is always stored as an "rda"
object.
If one of the other types is specified, the design "."
or ","
;
the default is the option setting in the R options; this option also directs
whether write.cs
html
,
usable e.g. for modifying row coloringexport.design
always stores an R workspace that contains just
the design (with attached attributes, cf. class design
). This file is stored
with ending rda
.
If requested by options type="csv"
, type="html"
, or type="all"
,
export.design
additionally creates an exported version of
the design that is usable outside of R. This is achieved via functions
write.csv
, write.csv2
or html
.
The csv-file contains the data frame itself only, the html file contains the data frame
followed by the legend to the right of the data frame. The html file uses row coloring in
order to prevent mistakes in recording of experimental results by mix-ups of rows.
If the OutDec option is correct for the current computer, the csv and html files can
be opened in Excel, and decimal numbers are correctly interpreted.
Generation of the html-file is particularly important for Taguchi inner/outer array designs
in wide format, because it provides the legend to the suffix numbers of response columns in terms of
outer array experimental setups!
The function html
and its data frame method are internal.FrF2-package
, DoE.wrapper-package
## six 2-level factors
test <- oa.design(nlevels=c(2,3,3,3))
## export an html file with legend and two responses
## files test.rda and test.html will be written to the current working directory,
## if they do not exist yet
export.design(test, response.names=c("pressure", "temperature"))
Run the code above in your browser using DataLab