[R] convert numeric variables to factor

David L Carlson dc@r|@on @end|ng |rom t@mu@edu
Mon Apr 9 19:11:54 CEST 2018


Try the help files:

?factor

----------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77843-4352

-----Original Message-----
From: R-help <r-help-bounces using r-project.org> On Behalf Of Saif Tauheed
Sent: Monday, April 9, 2018 11:29 AM
To: r-help using r-project.org
Subject: Re: [R] convert numeric variables to factor

Dear Sir,

I have xlsx data set which I have imported to R studio. Now some of the variables are defined as numeric but I want define them as factor variable so that I run classification algorithm in R.

Please to covert the variables.

Thanks and Regards

Abu Afzal
PhD Eco
JNU
India
______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.




More information about the R-help mailing list