How to convert a factor to numeric is one of the questions (with answers) 
in R's FAQ.

Assuming you don't need to do this again, I would just convert what you 
have imported.  Otherwise, explore the max.value.labels argument of 
read.spss.

On Fri, 4 Jul 2003, Silika Tereshchenko wrote:

> I have the following problem. I have to import the dataset (survey) from SPSS 
> into R-programm. By using the "read.spss" the all of variables have been readed 
> as factor. I need the variables "income" and "age" as numeric for the 
> regreesion analysis. Could you plese help me.

-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to