Hi,
    Is there a way to save R models (glm, lm , rpart etc) in a file that
be read in later?
 
    I noticed models take up space. by space them off and removing them
from memory it seems that would be useful.
 
    Also why do the models keep a copy of all columns in the original
data set even those columns are not in the model.
    E.g. if I build a model on columns A, B even thought column C exists
in the dataframe when I run the model against test data with only
columns A and B then I get an error saying column C is missing from the
data.
 
    Anyway it seems like the models would be more compact without having
to include within them data from the original data set used to build
them but that is an aside.
 
    If models can be persisted and loaded selectively later that would
neat.
 
 
thanks
Dhruv

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to