Can an Object be Coerced to a Certain S4 Class?
Test if an object can be coerced to a given S4 class.
Maybe useful inside
if() to ensure that calling
as(object, Class) will find a method.
any R object, typically of a formal S4 class.
an S4 class (see
a scalar logical,
TRUE if there is a
(as defined by e.g.\sspace
setAs) for the signature
(from = class(object), to = Class).
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.