PCA.GENES: Principal Component Analysis

Description Usage Arguments Author(s) Examples

View source: R/PCA.GENES.R

Description

Computes a Principal Component Analysis on any data matrix.

Usage

1

Arguments

X

Matrix or data.frame with variables (e.g. genes) in columns and observations (e.g. samples) in rows.

Author(s)

Maria Jose Nueda

Examples

1
2
3
4
5
6
7
8
	## Simulate data matrix with 500 variables and 10 observations
	datasim = matrix(sample(0:100, 5000, replace = TRUE), nrow = 10)

	## PCA
	myPCA = PCA.GENES(datasim)

	## Extracting the variance explained by each principal component
	myPCA$var.exp

NOISeq documentation built on Nov. 8, 2020, 5:10 p.m.