[R] Return value associated with a factor

2010-06-21 Thread GL
I am using the code below to extract census tract information. save.tract$state, save.tract$county and save.tract$tract are returned as factors. In the last three statements, I need to save the actual value of the factor, but, instead, the code is yielding the position of the factor. How do I

Re: [R] Return value associated with a factor

2010-06-21 Thread Joris Meys
Code is not runnable, so can't check why it goes wrong, but tried already with as.character(save.tract$...) ? Cheers Joris On Mon, Jun 21, 2010 at 3:15 PM, GL pfl...@shands.ufl.edu wrote: I am using the code below to extract census tract information. save.tract$state, save.tract$county and

Re: [R] Return value associated with a factor

2010-06-21 Thread GL
Works great. Thanks much! -- View this message in context: http://r.789695.n4.nabble.com/Return-value-associated-with-a-factor-tp2262605p2262656.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list