powered by
Functions to convert ObjectArray(s) to lists, and NestMatrix and SectMatrix objects to matrices.
# S3 method for ObjectArray as.list(x, …)# S3 method for MImage as.list(x, …) # S3 method for SImage as.matrix(x, …)# S3 method for NestMatrix as.matrix(x, …) # S3 method for SectMatrix as.matrix(x, …)
# S3 method for MImage as.list(x, …) # S3 method for SImage as.matrix(x, …)
# S3 method for NestMatrix as.matrix(x, …) # S3 method for SectMatrix as.matrix(x, …)
An ObjectArray/NestMatrix or PartMatrix/SectMatrix object. Note that nested matrices need to be conformable and non-recursive.
Ignored.
# NOT RUN { x <- NestMatrix (2, 2) x [[1, 1]] <- matrix ("AA", 2, 2) x [[1, 2]] <- matrix ("AB", 2, 2) x [[2, 1]] <- matrix ("BA", 2, 2) x [[2, 2]] <- matrix ("BB", 2, 2) x as.matrix (x) # }
Run the code above in your browser using DataLab