Skip to content
Prev 166800 / 398502 Next

Converting Factor to Vector

Using 'str' to see what you have is excellent practice
(and very helpful to show in messages to R-help).
However, you need to look at the output you get
more carefully.  You have a data frame that contains
a factor.  So:

as.character(repo[, 1])

should do what you want.


Patrick Burns
patrick at burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of "The R Inferno" and "A Guide for the Unwilling S User")
Gundala Viswanath wrote: