Re: [R] Simple inheritance check fails (integer from numeric)

2011-07-07 Thread David Winsemius
On Jul 7, 2011, at 10:25 AM, Janko Thyson wrote: On 07.07.2011 16:09, David Winsemius wrote: On Jul 7, 2011, at 6:01 AM, Janko Thyson wrote: Dear list, In a function, I don't care if my input has class 'integer' or 'numeric', so I wanted to use 'inherits()' to control for that. However

Re: [R] Simple inheritance check fails (integer from numeric)

2011-07-07 Thread Janko Thyson
On 07.07.2011 16:09, David Winsemius wrote: On Jul 7, 2011, at 6:01 AM, Janko Thyson wrote: Dear list, In a function, I don't care if my input has class 'integer' or 'numeric', so I wanted to use 'inherits()' to control for that. However, this function tells me that an actual object of cla

Re: [R] Simple inheritance check fails (integer from numeric)

2011-07-07 Thread David Winsemius
On Jul 7, 2011, at 6:01 AM, Janko Thyson wrote: Dear list, In a function, I don't care if my input has class 'integer' or 'numeric', so I wanted to use 'inherits()' to control for that. However, this function tells me that an actual object of class 'integer' does not inherit from class '

[R] Simple inheritance check fails (integer from numeric)

2011-07-07 Thread Janko Thyson
Dear list, In a function, I don't care if my input has class 'integer' or 'numeric', so I wanted to use 'inherits()' to control for that. However, this function tells me that an actual object of class 'integer' does not inherit from class 'numeric'. The class def of 'integer' does state 'num