[R] Access an entry after reading a table

Gang Chen gangchen at mail.nih.gov
Thu Aug 2 18:54:22 CEST 2007


Sorry about this basic question. After reading a table,

Model=read.table("ModelMat.txt", header=T)

I want to get access to each entry in the table Model. However, if I do

 > Model[1,1]

I get the following,

[1] A
Levels: A B C

My question is, how can I just get the entry "A" without the 2nd line  
("Levels: A B C")?

Thanks,
Gang



More information about the R-help mailing list