[R] Function to convert categorical variable in numerical

From: J.Andrés Martínez <jamartinez_at_gmail.com>
Date: Thu, 24 May 2007 11:07:04 +0200

Hello everybody,

I am a new R user. At current moment I need to do a Principal Components Analysis with a table who contain mixed variables (categorical and numerical). There is some function available in R for transform these variables?

For example: I need transform the categorical variable X who has 3 classes in 2 numerical variables with 0s and 1s.

Thank you very much,
J. Andres

        [[alternative HTML version deleted]]

R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 May 2007 - 09:10:39 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 May 2007 - 11:31:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.