MathGroup Archive 1996

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

Search the Archive

Reading tables with labels


I would like to read a table that looks like this:

name        len lamr   lamv   kr     kv
FEPE         54 0.2316 0.1544 0.4582 0.2030
H3NJ1W       60 0.2136 0.1826 0.1589 0.1244
NTSRIA       64 0.2087 0.1614 0.1730 0.1117
N2KF1U       74 0.2115 0.1560 0.1416 0.0826
LWBOA        75 0.1774 0.1910 0.0335 0.0352
LWPMA        81 0.1797 0.1809 0.0375 0.0378

Into two lists, one with the name of the column and a second with
the actual values of the columns.  I can read the data with ReadList[],
but of course it chokes on the initial labels.

Are there functions that allow me to read the first line into a list
and do ReadList[] on the remainder?

(What I want is the equivalent of Splus "read.table(...,header=T)"

Bill Pearson


  • Prev by Date: Re: InterpolatingFunction::dmwarn: Warning
  • Next by Date: How to get rid of the outer {}?
  • Previous by thread: Re: Plotting with a simplex
  • Next by thread: Re: Reading tables with labels