Learn R Programming

specleanr (version 1.0.0)

pca: Implement principal component analysis for dimension reduction

Description

Implement principal component analysis for dimension reduction

Usage

pca(data, npc, q)

Arguments

data

Environmental dataframe

npc

Number of principal components to be retained. Default is 2

q

To show the cumulative total variance explained by the npc selected.