3
I have a column in my data matrix 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
And I need the Levels vector, that is:
1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 15
For it is not a complete sequence, it lacks some numbers.
But I can’t separate it.
Is there any easy way to do this?