This package performs group-sparse principal component analysis with deflation or block approaches. Sparse PCA is recovered as the special case where each variable forms its own group:
https://chavent.github.io/sparsePCA/
Sparse PCA of mixed data (data described by numerical and/or categorical variables) is also implemented:
https://chavent.github.io/sparsePCA/mixed_data.html
To install the current development version from GitHub, use:
pak::pak("chavent/sparsePCA")
# This requires the pak package to be installed:
# install.packages("pak")