Displaying 2 results from an estimated 2 matches for "o65938".
2006 Oct 24
2
why it returns list level number instead of its content?
for example:
I have a data frame.
data$V4 returns:
.....
[6936] P05796 P11096 P76174 P04475 P18775
[6941] P33225 P76387 P76388 P76388 P09375
[6946] P15300 P15723
1375 Levels: O50190 O65938 O69415 P00274 P00363 P00364 P00370 P00373 ...
Q9AJ15
data$V5 returns something like data$V4
I want to cbind this two columns, so I use
new <- cbind(data$V4,data$V5)
I expect it to return something like:
[1] P05761 P11986
[2] .......
however it returns
[1] 215 434
[2] 134 213
.............
it use...
2006 Oct 23
1
problem of using list element in for cycle
sorry, pressed "sent" by mistake.
for example
>data <- read.csv("data.txt")
>data
V1 V2
1 YHR165C CG8877
2 YJL130C CG18572
3 YDL171C CG9674
4 YKR054C CG7507
5 YDL140C CG1554
6 YLR106C CG13185
7 YGL206C CG9012
8 YNL262W CG6768
9 YER172C CG5931
>typeof(data)
[1] "list"
>for (i in