Learn R Programming

polyMatrix (version 0.3.1)

is.polyMatrix: Is an object of type 'polyMatrix'?

Description

Checks wether the given object is a polyMatrix object or not.

Usage

is.polyMatrix(x)

Arguments

x

an R object.

Details

is.polyMatrix returns TRUE if its argument is a polyMatrix (that is, has "polyMatrix" amongst its classes and one of the four sub-classes: "polyMarray", "polyMbroad", "polyMcells", "polyMdlist") and FALSE otherwise.

See Also

pMstr

Examples

Run this code
# NOT RUN {
pm <- polyMgen.a(2,3,5)

is.polyMatrix(polyMconvert(pm,"polyMarray"))
is.polyMatrix(polyMconvert(pm,"polyMdlist"))
is.polyMatrix(polyMconvert(pm,"polyMbroad"))
is.polyMatrix(polyMconvert(pm,"polyMdlist"))

# clean up
# rm(pm)
# }

Run the code above in your browser using DataLab