Learn R Programming

rminer (version 1.4.1)

savemining: 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 mining function.
file
filename that should include an extension
ascii
if TRUE then ascii format is used to store the file (larger file size), else a binary format is used.

Value

loadmining returns a mining mining list, while loadmodel returns a model object (from fit).

Details

Very simple functions that do what their names say. Additional usages are: loadmining(file) savemodel(MM_model,file,ascii=FALSE) loadmodel(file)

References

See fit.

See Also

fit, predict.fit, mining, mgraph, mmetric, savemining, Importance.

Examples

Run this code
data(iris)
M=fit(Species~.,iris,model="rpart")
savemodel(M,"iris.model") # saves to file
M=NULL # cleans M
M=loadmodel("iris.model") # load from file
print(M)

Run the code above in your browser using DataLab