I have an integer column that has factor applied to it:
col <- factor(list("3", "4", "3", "3"), labels = c("a", "b"), levels = c(3, 4))
If I convert that column to integer, I get:
> as.integer(col)
[1] 1 2 1 1
While I want to get original list of 3 and 4.
How can I achieve this?