calc_expvar: Explained variance of a principal component

Description Usage Arguments Value Author(s)

View source: R/calc_expvar.R

Description

This function calculates the explained variance of a given principal component in a PCA.

Usage

1
calc_expvar(pca, n)

Arguments

pca

A prcomp object.

n

An integer: what principal component?

Value

A numeric, the proportion of variance in the dataset explained by the principal component.

Author(s)

Raphael Scherrer


rscherrer/sagreicolor documentation built on May 26, 2019, 12:32 p.m.