is: Class and component testers

isR Documentation

Class and component testers

Description

Class testers test if any of the classes of an object is of a given class. For instance is_PCA on a PCA object (of classes PCA and prcomp) will return TRUE. Component testers check if there_is a particular component (eg ⁠$fac⁠, etc.) in an object.

Usage

is_Coo(x)

is_PCA(x)

is_LDA(x)

is_Out(x)

is_Opn(x)

is_Ldk(x)

is_Coe(x)

is_OutCoe(x)

is_OpnCoe(x)

is_LdkCoe(x)

is_TraCoe(x)

is_shp(x)

is_fac(x)

is_ldk(x)

is_slidings(x)

is_links(x)

Arguments

x

the object to test

Value

logical

Examples

is_Coo(bot)
is_Out(bot)
is_Ldk(bot)
is_ldk(hearts) # mind the capitals!

vbonhomme/Momocs documentation built on Nov. 13, 2023, 8:54 p.m.