On Thu, Feb 4, 2010 at 12:20 AM, Frank E Harrell Jr
<f.harr...@vanderbilt.edu> wrote:
> Gábor Csárdi wrote:
>>
>> Perhaps you are looking for ?serialize.
>>
>> Best,
>> Gábor
>
> Wouldn't save( ) and load( ) be faster and result in much smaller files?

Depends, functionality is not the same, I think. 'serialize' can
simply return the serialized form of an object, 'save' works best with
files. (With some extra work it should work on general connections I
suppose.) 'save' can handle many objects, serialize works with a
single object. I'm sure there are other differences.

Gabor

> Frank
>
>>
>> On Thu, Feb 4, 2010 at 12:09 AM, mkna005 mkna005
>> <mkna...@aucklanduni.ac.nz> wrote:
>>>
>>> Hello all!
>>> I was wondering if there is a way to pickle an R object into a file
>>> like it is possible in python? Such as you have an complicated R
>>> object(not a dataframe) , you use a function to write it to a file and
>>> than you have a function where you can retrieve the object from that
>>> file later on.
>>>
>>> Thanks
>>>
>>> Christoph
>>>
>>> ______________________________________________
>>> 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.
>>>
>>
>>
>>
>
>
> --
> Frank E Harrell Jr   Professor and Chairman        School of Medicine
>                     Department of Biostatistics   Vanderbilt University
>



-- 
Gabor Csardi <gabor.csa...@unil.ch>     UNIL DGM

______________________________________________
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