[R] Changing selected columns to factor

Jeff Reichman reichm@nj @ending from @bcglob@l@net
Tue Jun 12 01:57:46 CEST 2018


R-Help Forum

 

If I have a data frame consisting of say ten (10) variables
(A,B,C,D,E,F,G,H,I,J) and I want to change Variables 2,7,8,and 9 to factors
is there a command such that I can do it in one line or do I simply have to
convert each separately?

 

Jeff


	[[alternative HTML version deleted]]



More information about the R-help mailing list