Learn R Programming

fChange (version 2.1.0)

pca_components: Functional PCA Components

Description

Evaluates the given pca components as a function.

Usage

pca_components(pca, components = 1:length(pca$sdev))

Value

A dfts object of the pca component(s)

Arguments

pca

PCA object from pca()

components

Numeric for the components of interest. Can be a single numeric to examine that component or multiple to examine the combined result

Examples

Run this code
tmp <- pca(electricity, TVE = 0.1)
pca_components(tmp, components = 1)

Run the code above in your browser using DataLab