print.multiblock_biprojector {multivarious}R Documentation

Pretty Print Method for multiblock_biprojector Objects

Description

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 class 'multiblock_biprojector'
print(x, ...)

Arguments

x

A multiblock_biprojector object.

...

Additional arguments passed to print().

Value

Invisible multiblock_biprojector object.

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)

[Package multivarious version 0.2.0 Index]