Hi,

many thanks for the reply. I really appreciate it.
Since I'm still very new to R, I think I should take some time to research
what you suggested.
(I don't want to keep posting basic questions to the list all the time)

But still, thank you so much for being helpful...



On Mon, Feb 13, 2012 at 7:23 PM, Rui Barradas <rui1...@sapo.pt> wrote:

> Hello,
>
> > I tried writing this data into a file using the save(myList,
> > file="test1.bin") command, but unfortunately, the numerical values seem
> > to get garbled when I do so.
> >
> > The numbers in my RGui look like
> >
> > 0, 0.5, 0, 1 etc. etc.
> >
> > But when I stored it into a .bin file, and retrieved it using java code,
> > it returns data such as,
> >
>
> The problem should be in the use of java, 'save' uses a R format , RDA.
> You can use 'ascii=TRUE'and see it with a text editor. Also see
>
> ?save
>
> > I also tried the second method (using a # Open a file connection)
> >
> > Unfortunately, here too the data gets extremely garbled.
>
> Don't understand why, check the output file with a text editor and let us
> know
> what is wrong.
>
> The problem I've seen is that the use of 'strsplit' coerses the numeric
> data
> to character,
> but this is easy to solve.
>
> Does your list have sub-lists?
>
> Rui Barradas
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Writing-output-into-a-file-tp4382243p4383741.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>



-- 
Best Regards,

Suranga

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