Skip to contents

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.