[R] read.table

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Thu Sep 6 13:58:41 CEST 2007


Ingo Holz wrote:
> Hi,
>
>  I want to read a ascii-file using the function read.table.
>  With 'skip' and 'nrows' I can select the rows to read from this file.
>
>  Is there a way to select columns (in the selected rows)?
>   
Yes, use the colClasses argument.
(I won't rewrite the help page here; I expect that you can read it once
you know where to look.)

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list