I run str(myExprdat) and got below results:
'data.frame': 10 obs. of 10 variables:
$ ID : Factor w/ 54613 levels "1007_s_at","1053_at",..: 1 2 3 4 5 6 7 8 9 10
..- attr(*, "names")= chr "1007_s_at" "1053_at" "117_at" "121_at" ...
$ Gene symbol: chr "MIR4640///DDR1" "RFC2" "HSPA6" "CYP2E1" ...
$ Sample1 : Factor w/ 1348 levels "1.62","1.82",..: 46 117 43 1234 823 158 1289 1072 180 978
..- attr(*, "names")= chr "1007_s_at" "1053_at" "117_at" "121_at" ...
$ Sample2 : Factor w/ 1347 levels "1.64","1.83",..: 710 218 1054 840 825 1251 1226 1074 450 1062
..- attr(*, "names")= chr "1007_s_at" "1053_at" "117_at" "121_at" ...
$ Sample3 : Factor w/ 1349 levels "1.61","1.8","10.06",..: 1126 680 278 845 828 367 1228 1079 367 1064
..- attr(*, "names")= chr "1007_s_at" "1053_at" "117_at" "121_at" ...
$ Sample4 : Factor w/ 1356 levels "1.62","1.83",..: 206 526 518 13 830 1180 1178 1089 49 1071
I cant understand your mean about your last comment:
"Note, that, for by, you could just use myExprdat[2]"