Check object is target class, or object is data.frame fortified from target.
Source: R/util.R
is_derived_from.RdCheck object is target class, or object is data.frame fortified from target.
Examples
ggfortify:::is_derived_from(prcomp(iris[-5]), 'prcomp')
#> [1] TRUE