extract_PC: Extract top n PCs

View source: R/extract_PC.R

extract_PCR Documentation

Extract top n PCs

Description

This function performs PCA on a given matrix and returns a PCA matrix.

Usage

extract_PC(data, num_PCs = 2)

Arguments

data

A data frame to conduct PCA

num_PCs

Number of PCs to be extracted

Value

A PCA matrix with num_PCs columns

Author(s)

Boyang Zhang <bzhang34@jhu.edu>, Hongkai Ji


byzhang23/TreeCorTreat documentation built on May 7, 2024, 8:37 a.m.