[R] Help. Import data

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jul 4 08:56:05 CEST 2003


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,                  ripley at stats.ox.ac.uk
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




More information about the R-help mailing list