Apply PCA to the data after catenating data.frames horizontally

Share:

Description

Apply PCA to the data after catenating data.frames horizontally

Usage

1
dflst_pca(df_lst, center = F, scale = F)

Arguments

df_lst

[1,m] list of data.frames, A list of data.frames to process

center

boolean, TRUE -> center data, FALSE -> do nothing

scale

boolean, TRUE -> scale data, FALSE -> do nothing

Value

A list with elements:

pcdf:

data.frame, PCA components (prcomp()$x)

model:

list, Output of prcomp()

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.