I have a column in my data array as follows:
> as.factor(matriz$especime)
[1] 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3
[29] 3 3 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7
[57] 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 10
[85] 10 10 10 10 10 10 11 11 11 11 11 13 13 13 13 13 15 15
46 Levels: 1 2 3 5 6 7 8 9 10 11 13 15
I need the Levels vector, that is:
1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 15
It's not a complete sequence, it's missing some numbers.
However, I can not separate it.
Is there any easy way to do this?