Learn R Programming

ggfortify (version 0.4.17)

is_derived_from: 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)

Value

logical

Arguments

object

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

target

class name

Examples

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

Run the code above in your browser using DataLab