Learn R Programming

bigPCAcpp (version 0.9.0)

bigPCAcpp-package: bigPCAcpp: Principal Component Analysis for bigmemory Matrices

Description

The bigPCAcpp package provides high-performance principal component analysis routines that work directly with bigmemory::big.matrix objects. Data are streamed through BLAS and LAPACK kernels so large, file-backed matrices can be analysed without materialising dense copies in R. Companion helpers compute scores, loadings, correlations, and contributions, including streaming variants that write results to bigmemory::big.matrix destinations used by file-based pipelines.

Arguments

Author

Maintainer: Frederic Bertrand frederic.bertrand@lecnam.net

See Also

pca_bigmatrix(), pca_stream_bigmatrix()

Examples

Run this code
# \donttest{
library(bigmemory)
mat <- as.big.matrix(matrix(rnorm(20), nrow = 5))
result <- pca_bigmatrix(mat)
result$sdev
# }

Run the code above in your browser using DataLab