Check object is target class, or object is data.frame fortified from target.

Share:

Description

Check object is target class, or object is data.frame fortified from target.

Usage

1
is_derived_from(object, target)

Arguments

object

instance to be checked. For data.frame, check whether it is fortified from target class

target

class name

Value

logical

Examples

1
ggfortify:::is_derived_from(prcomp(iris[-5]), 'prcomp')

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.