Hi Silika,
This is what I would do:
>df <- read.spss("datafile", to.data.frame=T)
>for(i in c("age","income")){ #Add more if you like
+ df[[i]] <- as.numeric(df[[i]])
+}
/Fredrik
On Fri, Jul 04, 2003 at 08:39:07AM +0200, Silika Tereshchenko wrote:
> Hoy,
>
>
> 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.
>
>
> Thanks a lot,
> best regards,
> Silika
>
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help