Pretty Print Method for multiblock_biprojector
Objects
print.multiblock_biprojector.Rd
Display a human-readable summary of a multiblock_biprojector
object, including information about the dimensions of the projection matrix, the pre-processing pipeline, and block indices.
Usage
# S3 method for multiblock_biprojector
print(x, ...)
Arguments
- x
A
multiblock_biprojector
object.- ...
Additional arguments passed to
print()
.
Examples
# Generate some example data
X1 <- matrix(rnorm(10 * 5), 10, 5)
X2 <- matrix(rnorm(10 * 5), 10, 5)
X <- cbind(X1, X2)
# Compute PCA on the combined data
pc <- pca(X, ncomp = 8)
# Create a multiblock bi-projector using PCA components and block indices
mb_biproj <- multiblock_biprojector(pc$v, s = pc$u %*% diag(sdev(pc)), sdev = sdev(pc),
block_indices = list(1:5, 6:10))
# Pretty print the multiblock bi-projector object
print(mb_biproj)
#> Multiblock Bi-Projector object:
#> Projection matrix dimensions: 10 x 8
#> Block indices: 1:5, 6:10