MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: importing and using data

  • To: mathgroup at
  • Subject: [mg17234] Re: importing and using data
  • From: rlsmith at (Richard Smith)
  • Date: Fri, 30 Apr 1999 02:34:32 -0400
  • Organization: Heller Information Services
  • References: <7f9gm5$>
  • Sender: owner-wri-mathgroup at

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];

This function "StringToNumber" was found in

Good Luck

On 17 Apr 1999 04:27:49 -0400, vango at (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
>Has anyone encountered this before or know how to fix it?
>Doug V

  • Prev by Date: Re: infuriating Series[] question
  • Next by Date: Re: directory and file structure
  • Previous by thread: Re: importing and using data
  • Next by thread: How do I make my own pallettes