[R] How to get warning about implicit factor to integer coercion?

2011-02-14 Thread WB Kloke
Is there a way in R (12.x) to avoid the implicit coercion of factors to integers in the context of subscripts? If this is not possible, is there a way to get at least a warning, if any coercion of this type happens, given that the action of this coercion is almost never what is wanted? Of course,

Re: [R] How to get warning about implicit factor to integer coercion? Example.

2011-02-14 Thread WB Kloke
Ista Zahn psych.rochester.edu> writes: > > Hi, > I think an example would be helpful. I'm not sure what behavior you > are referring to. > > best, Here is an example: If a data.frame of experimental results is read from an external file, a column of strings, e.g. subject codes, is converted t

Re: [R] How to get warning about implicit factor to integer coercion?

2011-02-15 Thread WB Kloke
csiro.au> writes: > > Your complaint is based on what you think a factor should be rather than what it actually is andhow it works. > The trick with R (BTW I think it's version 2.12.x rather than 12.x at this stage...) is learning to work > *with* it as it is rather than making it work the way