Re: [R] write merged data frame to a file

2011-07-19 Thread Andrea Franceschini
Very Sorry for the instinctive bad comment... I didn't express correctly what I meant. I meant that I would have never expected such behaviour, by default (but may be I am wrong and most of the people need quoting, and hence has sense to put it by default) Problem solved, Philipp guessed right. I

Re: [R] write merged data frame to a file

2011-07-18 Thread David Winsemius
On Jul 18, 2011, at 11:10 AM, Andrea Franceschini wrote: Dear Philipp, You were right, thankyou very much. Effectively the second read.table didn't work (probably because of the strange characters). From my point of view this is a very bad R bug. When I read this I thought it was an exampl

Re: [R] write merged data frame to a file

2011-07-18 Thread Andrea Franceschini
Dear Philipp, You were right, thankyou very much. Effectively the second read.table didn't work (probably because of the strange characters). >From my point of view this is a very bad R bug. I precisely inserted the "\t" separator in the read table command, hence I would expect that everything is

Re: [R] write merged data frame to a file

2011-07-18 Thread Philipp Pagel
On Mon, Jul 18, 2011 at 04:00:29PM +0200, Andrea Franceschini wrote: > > I use version 13 of R in OSX (downloaded and installed less than 1 year ago). Probably 2.13 ... [...] code omitted > The first lines are OK (i.e. 14 columns, like the dataframe), while at > a certain point I get lines with

Re: [R] write merged data frame to a file

2011-07-18 Thread Andrea Franceschini
Dear all, Sarah, ok, I start to give some details. I use version 13 of R in OSX (downloaded and installed less than 1 year ago). I pasted below the results of the str() command. The data frame looks perfect for me. I generated the dataframe using the following commands: rog=read.table("/Users/and

Re: [R] write merged data frame to a file

2011-07-18 Thread Sarah Goslee
Hi Andrea, On Mon, Jul 18, 2011 at 6:07 AM, Andrea Franceschini wrote: > Dear all, > > I merged 2 data frames using the merged command and the resulting data frame > looks perfect into R. > > However, I have serious problems when I try to write this new data frame > into a file using the write.ta

[R] write merged data frame to a file

2011-07-18 Thread Andrea Franceschini
Dear all, I merged 2 data frames using the merged command and the resulting data frame looks perfect into R. However, I have serious problems when I try to write this new data frame into a file using the write.table command. Basically I get parts of the second file that I merged into the file.