### generic function
fix(x, ...)
## S3 method for class 'default':
fix(x, ...)
## S3 method for class 'design':
fix(x, ..., prompt=FALSE)
design
fix
from package fix
and the links therein.
The function for class design
adds the numeric version
(as.numeric
) of all newly-entered variables to the
desnum
attribute of x
and appends the names of all
newly-entered response variables to the
response.names
element of the design.info
attribute.
If numeric variables are to be entered that are no response variables, the
function should be called with prompt=TRUE
so that these are not
taken to be response variables. Automatic default analyses (not yet available) would otherwise
include analyses for these variables.design
.
Function fix
immediately commits all changes, overwriting the original object without further notice.
This is also true for the method applicable to objects of class design
, as long as
the changes do not destroy the properties of the design.
It is therefore wise to keep a copy of the original,
until correctness of the changes is ascertained.
For design objects, changes are only committed,
if no forbidden editing has been done: Changes in
values of the experimental factors are not allowed and prevent storing edited
information (only reported after the fact, user has no choice in the matter).
If the editing would destroy the structure of the design,
e.g. because something was typed into an empty row of the
data editor which leads to an extra row with missing values,
a prompt allows to abort the changes; if changes are committed, the data frame
is stored under its original name without any of its attributes (and can thus
no longer be treated by any special tools for design objects).fix
and the links thereinplan <- oa.design(L18)
fix(plan)
## manually add some numeric data for the response
response.names(plan)
fix(plan, prompt=TRUE)
## manually add at least two numeric response columns
## select from menu which ones are to be responses
response.names(plan)
Run the code above in your browser using DataLab