is_derived_from: Check object is target class, or object is 'data.frame'...

View source: R/util.R

is_derived_fromR Documentation

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

Description

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

Usage

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

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

sinhrks/ggfortify documentation built on June 30, 2024, 11:41 a.m.