Tests whether the object is an instance of an S4 class.
isS4(object)<p></p><p>asS4(object, flag = TRUE, complete = TRUE)
asS3(object, flag = TRUE, complete = TRUE)</p>
| Parameter | Description |
|---|---|
object |
Any R object. |
flag |
Optional, logical: indicate direction of conversion. |
complete |
Optional, logical: whether conversion to S3 is completed. Not usually needed, but see the details section. |
# NOT RUN {
isS4(pi) # FALSE
isS4(getClass("MethodDefinition")) # TRUE
# }