the following strange behavior is appearing in my code in R. This is my factor object:
R> pointsraw
[1] 2 7 6 10 2/1-1/0.5
[6] 1 0.500000000000000 3 1 8
[11] 7/1-5/0.7-3/0.4 3 3/2-2/1 11/5-9/3-5/1 4
[16] 4 4/2/0 80 4/0 20
[21] 2 4/1-3/0.5
18 Levels: 0.500000000000000 1 10 11/5-9/3-5/1 2 2/1-1/0.5 20 3 3/2-2/1 4 4/0 4/1-3/0.5 4/2/0 6 ... 80
This the first entry
R> pointsraw[[1]]
[1] 2
18 Levels: 0.500000000000000 1 10 11/5-9/3-5/1 2 2/1-1/0.5 20 3 3/2-2/1 4 4/0 4/1-3/0.5 4/2/0 6 ... 80
So far so good, but here comes the surprise:
R> as.numeric(pointsraw[[1]])
[1] 5
Question, why is this happening? How come 2 becomes 5?