Re: [Tutor] converting tab-delimited text files to csv

2007-01-29 Thread Carroll, Barry
> -Original Message- > Date: Fri, 26 Jan 2007 22:40:24 -0500 > From: Kent Johnson <[EMAIL PROTECTED]> > Subject: Re: [Tutor] converting tab-delimited text files to csv > To: Luke Paireepinart <[EMAIL PROTECTED]> > Cc: tutor@python.org > Message-ID: <[EM

Re: [Tutor] converting tab-delimited text files to csv

2007-01-26 Thread Kent Johnson
Luke Paireepinart wrote: > csv is comma-separated values, right? > you should be able to just do a string replace of tabs -> commas on each > line in the new file... > or is the csv format more complicated than that? Yes, it is more complicated than that because the data itself may contain comma

Re: [Tutor] converting tab-delimited text files to csv

2007-01-26 Thread Kent Johnson
Switanek, Nick wrote: > I have a long tab-delimited text file that I’d like to convert into csv > format so I can read it into a statistics package. Are you sure the statistics package can't read tab-delimited data directly? For example in R you can use read.delim(). > Here’s what I’ve tried to

Re: [Tutor] converting tab-delimited text files to csv

2007-01-26 Thread Luke Paireepinart
Switanek, Nick wrote: > > I have a long tab-delimited text file that I’d like to convert into > csv format so I can read it into a statistics package. > > I’ve been using Excel to do the format conversion up till now, but now > I have more rows than Excel can handle, and would like to avoid going

[Tutor] converting tab-delimited text files to csv

2007-01-26 Thread Switanek, Nick
I have a long tab-delimited text file that I'd like to convert into csv format so I can read it into a statistics package. I've been using Excel to do the format conversion up till now, but now I have more rows than Excel can handle, and would like to avoid going through Excel if possible. I