Skip to content
Prev 327293 / 398503 Next

Check the class of an object

Hi David,

thanks for the reply. You are right. Using the %in% is more stable and I gonna change my code.

When testing for a specific class using 'is' one has to start at the lowest heir and walk up the inheritance structure. Starting at the checks at the root will always give TRUE. Having a structure which is quite complicated let me move to the check I suggested in my first mail. 

Best

Simon
On Jul 23, 2013, at 6:15 PM, David Winsemius <dwinsemius at comcast.net> wrote: