Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

ReadList

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27197] ReadList
  • From: Matthias.Bode at oppenheim.de
  • Date: Fri, 9 Feb 2001 03:10:44 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear Colleagues:

I have to read an external file.txt:

ReadList["D:\theirfile.txt", Record, RecordList->True]//N

This works and yields the appropriately partitioned list  but gives me - as
InputForm proves - a list in which the numbers are (expletive deleted)
words:

mylistoftheirfile = {{"0.001, 0.2, ..."}, {"..."}, ....}

How can I convert the "words" to plain rational numbers that will be
amenable to a principal component analysis, my ultimate aim?

Thank you for your help.

Best regards,

Matthias Bode
Sal. Oppenheim jr. & Cie. KGaA
Koenigsberger Strasse 29
D-60487 Frankfurt am Main
GERMANY
Tel.: +49(0)69 71 34 53 80
Mobile: +49(0)172 6 74 95 77
Fax: +49(0)69 71 34 6380
E-mail: matthias.bode at oppenheim.de
Internet: http://www.oppenheim.de





  • Follow-Ups:
  • Prev by Date: Re: clever way to do a product?
  • Next by Date: Re: clever way to do a product?
  • Previous by thread: Re: Using Unusual Characters with Do
  • Next by thread: Re: ReadList