Storing an arbitrary R object onto HDD?
Posted
by
Harokitty
on Stack Overflow
See other posts from Stack Overflow
or by Harokitty
Published on 2012-08-29T12:22:40Z
Indexed on
2012/08/29
15:38 UTC
Read the original article
Hit count: 187
r
I understand that we can export data matrices to csv
or xlsx
files.
What about complex objects like lm
? For example, in my work I might have a list of length 1000, each with a single lm()
object. Each time I load R
I have to wait a long time to populate the 1000 length list with these lm
objects with a for
loop or a lapply
.
I would rather just save the list somewhere on my HDD at the end of a session and open it at the start of the next session.
© Stack Overflow or respective owner