Learn R Programming

synoptReg (version 0.2.2)

pca_decision: PCA decision

Description

pca_decision plots the explained variances against the number of the principal component. In addition, it returns all the information about the PCA performance.

Usage

pca_decision(smode_data)

Arguments

smode_data

S-mode dataframe of the reanalysis variable. I.e. output obtained from tidy_cuttime_nc function.

Value

a list with:

  • A list with class princomp containing all the results of the PCA

  • A data frame containing the main results of the 30 first PCA (standard deviation, proportion of variance and cumulative variance).

See Also

tidy_cuttime_nc

Examples

Run this code
# NOT RUN {
# Load data (mslp)
data(mslp)
# Converting our data into a S-mode, but without modifying time period
smode_mslp <- tidy_cuttime_nc(mslp)
# PCA decision performance
info_pca <- pca_decision(smode_mslp$smode_data)

# }

Run the code above in your browser using DataLab