[R] Reading characters using read.table()

Florent BATY baty at biomserv.univ-lyon1.fr
Wed Aug 7 12:17:46 CEST 2002


I need to read a vector containing names of different variables from a 
text file (a unique column). Among them one is called "T". When I use 
the function read.table with default arguments and when I call the 
element of the data frame corresponding to name of this variable it 
returns me the logical value "TRUE" whereas I was expected it to return 
the character "T".
Is it possible to specify the type data expected in a data frame when 
using the read.table function in order to make it unable to interpret 
"T" as "True" ?? Or is there any other functions enabling to import text 
data from a text file ??

Thanks in advance,



Florent BATY
Dynamique des Populations Bactériennes
Faculté de Médecine Lyon-Sud
69921 OULLINS, BP 12
tel : +33 (0)4 78 86 31 67
fax : +33 (0)4 78 86 31 49

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list