Skip to content

looping over factors

1 message · Liaw, Andy

#
The problem is this:
Factor w/ 3 levels "a","b","c": 1
int 1
 int 2
 int 3

So seems like the for loop had drop the factor attribute for `i'.  This
doesn't happen when one simply subset `b':
Factor w/ 3 levels "a","b","c": 1
 Factor w/ 3 levels "a","b","c": 2
 Factor w/ 3 levels "a","b","c": 3

Andy
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}