Re: importing and using data
- To: mathgroup at smc.vnet.net
- Subject: [mg17234] Re: importing and using data
- From: rlsmith at his.com (Richard Smith)
- Date: Mon, 26 Apr 1999 02:00:17 -0400
- Organization: Heller Information Services
- References: <7f9gm5$53f@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
I believe I had the same problem. I solved it my using the StirnigToNumber funtion below. I don't fully understand it but it worked for me. StringToNumber[s_String] := Block[{ss, result}, ss = StringToStream[s]; result = Read[ss, Number]; Close[ss]; result ] This function "StringToNumber" was found in Http://www.wolfram.com/support/Kernel/Files/CommaSeparatedData.html. Good Luck Dick On 17 Apr 1999 04:27:49 -0400, vango at lamar.colostate.edu (Doug VanGoethem) wrote: > >I have a large, one column data set in a tab-delimited text file. It >appears to read correctly when I use data=ReadList["filename", Number], but >when I tried to do a ListPlot or perform a Fourier transform I get an error >message that says it is not a list of numbers or pairs of numbers. I have >also tried data=Transpose[Readlist[....]], but this did not make any >difference. > >Has anyone encountered this before or know how to fix it? >Thanks, >Doug V >