Displaying 1 result from an estimated 1 matches for "itmid".
Did you mean:
itemid
2011 Aug 18
1
odd behavior of data.matrix()
Hi R community,
I have been trying to figure out why R is reversing the order of rows after
I run data.matrix()
Here is my data:
df<-structure(list(itmID = c(1L, 2L, 1L, 2L, 1L, 2L), variable =
structure(c(1L,
1L, 2L, 2L, 3L, 3L), .Label = c("3", "2", "1"), class = "factor"),
value = c(0.7, 0.52, -1.16, -0.91, 0, 0)), .Names = c("itmID",
"variable", "value"), row.names = c(N...