Skip to content
Prev 44816 / 398506 Next

Inheriting from factors + co.

On 24 Feb 2004 at 21:38, Uwe Ligges wrote:

            
I was typing faster than thinking. It doesn't actually fail but what I get is 
a numeric vector with a levels attribute. If I specify a factor as .Data 
part I expect that the created object IS a factor and 
is.factor(new("myclass", factor(1:10))) returns TRUE.
Sorry, forgot that one. I'm also using R 1.8.1 on Windows.

Thanks,

Torsten