not.inherits: Not inherit from any of the classes specified
Description
Opposite of base::inherits().
Indicates whether its first argument inherits from any of the classes specified in the what argument. If which is TRUE then an integer vector of the same length as what is returned. Each element indicates the position in the class(x) matched by the element of what; zero indicates no match. If which is FALSE then TRUE is returned by inherits if any of the names in what match with any class.
keep.cols = "a character"class(keep.cols) # class is characternot.inherits(keep.cols,"character")
num.var = 1Lclass(num.var) # class is integernot.inherits(num.var,"double")