powered by
The order of the resulting factor is determined by the order in which unique labels first appear in the vector or factor x.
x
givenOrder(x)
a vector or factor to be converted into an ordered factor.
givenOrder(c("First", "Second", "Third", "Fourth", "Fifth", "Sixth"))
Run the code above in your browser using DataLab