Learn R Programming

Momocs (version 1.4.1)

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

Value

logical

Arguments

x

the object to test

Examples

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

Run the code above in your browser using DataLab