I think R is doing exactly what you told it to do. Since you don't seem to
be satisfied, perhaps you need to explain what it is you want by giving us an
example of what you think you should end up with. You may have tried to do so,
but you failed to read and follow the Posting Guide (which warns you not to use
HTML email) so we don't know what you intended to communicate.
BTW I don't know why you are using the word "model" to describe a
length 2 numeric vector.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live
Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
On May 7, 2014 4:05:06 PM PDT, Sandip Nandi <sannandi at umail.iu.edu>
wrote:>Hi ,
>
>I want to add a serialized data to a data frame . The representation
>does
>not look good.
>
>> x<- c(1,2)
>> serialize(x,NULL)
>[1] 58 0a 00 00 00 02 00 03 00 02 00 02 03 00 00 00 00 0e 00 00 00 02
>3f f0
>00
>[26] 00 00 00 00 00 40 00 00 00 00 00 00 00
>> y<-serialize(x,NULL)
>> z=-1
>> m<- data.frame(y,z)
>> m
>y z
>1 58 -1
>2 0a -1
>3 00 -1
>4 00 -1
>5 00 -1
>6 02 -1
>7 00 -1
>8 03 -1
>9 00 -1
>10 02 -1
>11 00 -1
>12 02 -1
>13 03 -1
>
>
>> m[[1]]
>[1] 58 0a 00 00 00 02 00 03 00 02 00 02 03 00 00 00 00 0e 00 00 00 02
>3f f0
>00
>[26] 00 00 00 00 00 40 00 00 00 00 00 00 00
>> m[[2]]
>[1] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
>-1 -1
>-1
>[26] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
>
>why the representation is like this ? I
>
>What I want to achieve :=>
>
>I have created a model and want to save it in data frame in raw format
>.
>
>Can you please help?
>
>Thanks,
>Sandip
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help at 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.