[R] read.table

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Nov 19 11:05:49 CET 2012



On 19.11.2012 08:07, li1127217ye wrote:
>> read.table("data.txt",header=TRUE,
> colClasses=c("character","character","numeric","character",
> "numeric","numeric"))
>      a   b   c d e     f
> 1 SPX LSZ 100 C 0 34.40
> 2 SPX LSZ 100 P 0  1.30
> 3 SPX LSZ 105 C 0 30.30
> 4 SPX LSZ 105 P 0  1.85
> 5 SPX LSZ 110 C 0 26.40
>
> It's right result! "header=TRUE",not "header=T". I don't know why not.


Because you have a T in your workspace that is not an alias for TRUE?

Uwe Ligges

>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/read-table-tp871880p4650010.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list