Here's the dput for my list:
structure(c(5L, 3L, 1L), .Label = c("id0", "id1", "id2", "id3",
"id4"), class = "factor")
which, when we use print()
outputs
[1] id4 id0 id2
Which is what I want minus the [1]
To be rid of that, I use cat()
, but when I do, this is output instead
5 3 1
Which seems to correspond to the c(5L,3L,1L)
bit above, but I don't understand why.
Cheers!