rav2file {rAverage} | R Documentation |
Export rav
results
Description
The function exports to a text file the estimated parameters or the model residuals from a call to rav
.
Usage
rav2file(object, what = c("resid","param"), whichModel = NULL,
file = file.choose(), sep = ",", dec = ".")
Arguments
object |
An object analyzed by the function |
what |
Character string indicating which output should be stored in the file, if raw residuals
( |
whichModel |
Argument that specifies from which model values must be extracted. Options are:
As default setting, the values of the (first) best model are extracted. |
file |
A character string naming the file to write. As default, the function opens a mask to choose or build a file interactively. |
sep |
Field separator string. Values within each row will be separated by this string. |
dec |
String argument used to specify the decimal separator. |
See Also
Examples
## Not run:
data(pasta)
model <- rav.single(pasta,lev=c(3,3))
rav2file(model, what="resid", file="PastaResid-1.csv")
rav2file(model, what="resid", file="PastaResid-2.csv", sep=";", dec=",")
## End(Not run)