What is it you think as.numeric accomplishes for you? A reproducible example as requested in the posting guide might clarify.
Making factors and leaving them that way seems more productive. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Vignesh Prajapati <vign...@tatvic.com> wrote: >Hello all, > > I am new to R, I am learning regression and logistic modeling >with categorical predictor variables, when there is only one predictor >categorical variable i can use as.numeric() but when more than two >variable >then what is solution? can anyone suggest me? > >Thanks >vignesh > > [[alternative HTML version deleted]] > >______________________________________________ >R-help@r-project.org 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. ______________________________________________ R-help@r-project.org 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.