Cc: r-help@r-project.org
Subject: Re: [R] Controlling widths in write.fwf()
On 4/15/2009 11:45 AM, Vemuri, Aparna wrote:
> Duncan
> I tried writeLines. But I need to print about 23 lines and it is
> really slow.
This took about 1 second here:
writeLines(as.character(1:23),
Duncan Murdoch
Thanks
Aparna
-Original Message-
From: Duncan Murdoch [mailto:murd...@stats.uwo.ca]
Sent: Tuesday, April 14, 2009 4:34 PM
To: Vemuri, Aparna
Cc: r-help@r-project.org
Subject: Re: [R] Controlling widths in write.fwf()
On 14/04/2009 7:28 PM, Vemuri, Aparna wrote:
Is there
widths in write.fwf()
On 14/04/2009 7:28 PM, Vemuri, Aparna wrote:
> Is there a way to handle the widths of values being written to a file
> using wrtite.fwf() ?
>
> For example, I used read.fwf(file, width.vector) to read a file. After
> making the necessary data manipulation, I wa
Morse [mailto:morse.bren...@gmail.com]
Sent: Tuesday, April 14, 2009 5:35 PM
To: Vemuri, Aparna
Cc: r-help@r-project.org
Subject: Re: [R] Controlling widths in write.fwf()
Hi Aparna, you could always use the write.table function and set
sep="". This will put all of your data into a sort of "f
Hi Aparna, you could always use the write.table function and set
sep="". This will put all of your data into a sort of "fixed-width"
column depending on what you specify to separate the values. See basic
example below:
x<-matrix(nrow=2, ncol=2, c(1,2,3,4))
write.table(x, "/Users/morse07/Des
On 14/04/2009 7:28 PM, Vemuri, Aparna wrote:
Is there a way to handle the widths of values being written to a file
using wrtite.fwf() ?
For example, I used read.fwf(file, width.vector) to read a file. After
making the necessary data manipulation, I want to write the data to a
new file in the sam
Is there a way to handle the widths of values being written to a file
using wrtite.fwf() ?
For example, I used read.fwf(file, width.vector) to read a file. After
making the necessary data manipulation, I want to write the data to a
new file in the same width.vector format. Is there a way to specif
7 matches
Mail list logo