powered by
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.
is_PCA
PCA
prcomp
TRUE
$fac
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)
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)
logical
the object to test
is_Coo(bot) is_Out(bot) is_Ldk(bot) is_ldk(hearts) # mind the capitals!
Run the code above in your browser using DataLab