Displaying 1 result from an estimated 1 matches for "tp1747714p1747722".
Did you mean:
tp1747714p1747714
2010 Apr 01
1
Sharing levels across multiple factor vectors
Hi,
I've got a data frame with multiple factor columns, but they should share
the same set of labels, such as this tiny example:
df <- data.frame (
a = factor( c( "bob", "alice", "bob" ) ),
b = factor( c( "kenny", "alice", "alice" ) )
);
In my data, though, the strings are enormous. I would like to replace them
with integers,