[R] Loop through factors without changing to numerics

From: Chia, Yen Lin <yen.lin.chia_at_intel.com>
Date: Fri 20 Jan 2006 - 11:42:00 EST


Hi all,  

If I want to write a for loop to loop through a set of factors, which are not coded in 1,2,3, for e.g in character, possible to write the for loop without changing it to categorical variables? I saw the manual mentions for loop will take a list, but I'm not sure how to create a list here. Any input will be appreciated. Thanks.  

Yen Lin

        [[alternative HTML version deleted]]



R-help@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 Received on Fri Jan 20 11:56:20 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:07 EST