unfactor R factor
Thu 17 July 2014
Consider the following R code:
a <- factor(floor(rnorm(100))) class(a) summary(a)
Why should you have that? great question. Maybe because of memory place. I really don’t know, but I received some R dataset in the form of a factor. My problem is to revert this process, i.e. obtain only a list or a vector of integers.
I felt myself stupid when I realised that the function needed is as.vector() .
Category: R Tagged: how to programming R useless