Various class/component testers

Share:

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 (both 'PCA' and 'prcomp') will return TRUE. Component testers check if a particular component (eg $fac, etc.) is present.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

Arguments

x

the object to test

Value

TRUE/FALSE

Examples

1
2
3
4

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.