| savemining {rminer} | R Documentation |
Load/save into a file the result of a fit (model) or mining functions.
Description
Load/save into a file the result of a fit (model) or mining functions.
Usage
savemining(mmm_mining, file, ascii = TRUE)
Arguments
mmm_mining |
the list object that is returned by the |
file |
filename that should include an extension |
ascii |
if |
Details
Very simple functions that do what their names say. Additional usages are:
loadmining(file)
savemodel(MM_model,file,ascii=FALSE)
loadmodel(file)
Value
loadmining returns a mining mining list, while loadmodel returns a model object (from fit).
Author(s)
Paulo Cortez http://www3.dsi.uminho.pt/pcortez/
References
See fit.
See Also
fit, predict.fit, mining, mgraph, mmetric, savemining, Importance.
Examples
### dontrun is used here to avoid the creation of a new file
### in the CRAN servers. The example should work fine:
## Not run:
data(iris)
M=fit(Species~.,iris,model="rpart")
tempdirpath=tempdir()
filename=paste(tempdirpath,"/iris.model",sep="")
savemodel(M,filename) # saves to file
M=NULL # cleans M
M=loadmodel(filename) # load from file
print(M)
## End(Not run)
[Package rminer version 1.4.6 Index]