Hi everybody!

I have a matrix of class "myClass", for example:

myMat <- matrix(rnorm(30), nrow = 6)
attr(myMat, "class") <- "myClass"
class(myMat)

When I extract part of ''myMat'', the corresponding class ''myClass'' unfortunately disappear: 

myMat.p <- myMat[,1:2]
class(myMat.p)

Please for any advice / suggestions, how define class, that during an operation does not disappear.

Thanks, OV

	[[alternative HTML version deleted]]

