Displaying 1 result from an estimated 1 matches for "prefdefined".
Did you mean:
predefined
2009 Jun 09
3
Splicing factors without losing levels
...els(x)
}
return(xy)
}
This, however, doesn't work because the level name to integer mapping
gets mixed up when copying the levels from x to xy.
My questions:
1.) How can this be fixed?
2.) What's the best way to do splicing of vectors and factors in R?
(I couldn't find a prefdefined function for this although it seems to be
such a basic and useful operation.)
Thanks!!
Titus