I am converting factors to numbers and have tried both solutions previously posted:
as.numeric(as.character(factor))
as.numeric(levels(factor))
In both cases: I get lots of NA's and a warning message, NAs introduced by coercion. When I typed levels(factor), I do get many percentages (i.e. these are interest rates).
Is there any way I can convert these interest rates, whose class is factor, into numeric?
Thanks,
Shelley