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@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