sepPCA: Single Data Set Decomposition with Principal Component...

Description Usage Arguments Value Examples

View source: R/sepPCA.R

Description

Apply PCA (Principal Component Analysis) to a single data set

Usage

1
sepPCA(dataset, comp_num, weighting = NULL)

Arguments

dataset

A dataframe/matrix to be decomposed

comp_num

Number of PCs to be extracted

weighting

Weighting of each dataset, initialized to be NULL

Value

A list of scores and component

Examples

1
2
3
dataset = list(matrix(runif(5000, 1, 2), nrow = 100, ncol = 50))
comp_num = 2
res_sepPCA = sepPCA(dataset, comp_num)

CHuanSite/PJD documentation built on Oct. 26, 2021, 1 p.m.