Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/13/2011 07:06 PM, Prof Brian Ripley wrote: On Thu, 13 Jan 2011, Duncan Murdoch wrote: On 11-01-13 6:26 AM, Rainer M Krug wrote: Hi Assuming the following: x- data.frame(a=1:10, b=runif(10)) str(x) 'data.frame':10 obs. of 2

[R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Assuming the following: x - data.frame(a=1:10, b=runif(10)) str(x) 'data.frame': 10 obs. of 2 variables: $ a: int 1 2 3 4 5 6 7 8 9 10 $ b: num 0.692 0.325 0.634 0.16 0.873 ... write.csv(x, x.csv) x2 - read.csv(x.csv) str(x2)

Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread Duncan Murdoch
On 11-01-13 6:26 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Assuming the following: x- data.frame(a=1:10, b=runif(10)) str(x) 'data.frame': 10 obs. of 2 variables: $ a: int 1 2 3 4 5 6 7 8 9 10 $ b: num 0.692 0.325 0.634 0.16 0.873 ... write.csv(x,

Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/13/2011 02:56 PM, Duncan Murdoch wrote: On 11-01-13 6:26 AM, Rainer M Krug wrote: Hi Assuming the following: x- data.frame(a=1:10, b=runif(10)) str(x) 'data.frame':10 obs. of 2 variables: $ a: int 1 2 3 4 5 6 7 8 9 10 $ b:

Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread Ivan Calandra
Hi, I thought this was already clear from the replies to your previous post: - save/load - saveObject/loadObject from R.utils - dput/dget (I don't remember who proposed it sorry) There might be more possibilities, but that should do what you're looking for. And you should already know how each

Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Ivan Calandra Sent: Thursday, January 13, 2011 6:44 AM To: r-help@r-project.org Subject: Re: [R] Unexpected behaviour of write.csv - read.csv Hi, I thought this was already

Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread Prof Brian Ripley
On Thu, 13 Jan 2011, Duncan Murdoch wrote: On 11-01-13 6:26 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Assuming the following: x- data.frame(a=1:10, b=runif(10)) str(x) 'data.frame': 10 obs. of 2 variables: $ a: int 1 2 3 4 5 6 7 8 9 10 $ b: num

Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread Gabor Grothendieck
On Thu, Jan 13, 2011 at 1:06 PM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On Thu, 13 Jan 2011, Duncan Murdoch wrote: On 11-01-13 6:26 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Assuming the following: x- data.frame(a=1:10, b=runif(10)) str(x)

Re: [R] Unexpected behaviour of write.csv - read.csv

2011-01-13 Thread Greg Snow
] Unexpected behaviour of write.csv - read.csv -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/13/2011 02:56 PM, Duncan Murdoch wrote: On 11-01-13 6:26 AM, Rainer M Krug wrote: Hi Assuming the following: x- data.frame(a=1:10, b=runif(10)) str(x) 'data.frame':10 obs