param returns or
sets the specific parameter named in the
what argument.
parameters(x) parameters(x) <- value param(x, what) param(x, what) <- value
"pframe".
param.
parameters returns all the parameters.
param
returns the specific parameter named in
what.
x is not a parameterized data frame (of class
"pframe") on input,
then it is changed to one.
parameters replaces all the parameters, in this case
value needs
to be a list.
param replaces the value of the
what parameter by
value.
Parameters are arbitrary named quantities.
When a
pframe object is attached or is the
data argument to a model-fitting function,
the parameters become available for computations just like the
variables of the data frame.
The names of the parameters must be unique and must not conflict with
the names of the variables in the data frame.
When a data frame is given parameters with either
param or
parameters, it
acquires the class attribute
"pframe" automatically.
wafer.par <- wafer # wafer.par is a data.frame parameters(wafer.par) <- list(a=1, b=2.3) # wafer.par is now a pframe parameters(wafer.par) nls(post.mean ~ pre.mean^a + pre.dev^b, wafer.par) param(wafer.par, "b") <- .5