Re: [Rd] newline with cell of Excel worksheet created with write.xls

2007-02-12 Thread Mark W Kimpel
Hans-Peter, I agree, I wasn't sure whether to put this stuff on-list or not. I have seen some people request that things NOT be taken of list because then the answers are not available to everybody. Let's solve some of these issues ourselves (I am willing to help) and, if appropriate, repost th

Re: [Rd] newline with cell of Excel worksheet created with write.xls

2007-02-12 Thread Hans-Peter
Hi Mark, You need a character vector or a data.frame for separate rows. Something like: longtext <- 'akdf kadfö \nkad flkdöflkadfk dafk \nlakdf kdjfkjdfkjadfk\njadfkjdflk adf' (rowtext <- as.data.frame( strsplit( longtext, split = "\n" )) ) may do this. Regards, Hans-Peter PS: Probably not so

[Rd] newline with cell of Excel worksheet created with write.xls

2007-02-08 Thread Mark W Kimpel
As part of my project to put different types of results into worksheets, I would like to be able to put an auto-generated methods section. If I compose in RWinEdt, read into R, and use write.table with a .txt file extension, what I get out has line-breaks that correspond to those I put in in th