pcApprox: Approximate Data from N Principle Components

Description Usage Arguments Value Examples

View source: R/newFunctions.R

Description

Approximate Data from N Principle Components

Usage

1
pcApprox(x, npc)

Arguments

x

numerical dataframe, matrix, or tibble

npc

number of Principle Components (PCs) to use in approximation

Value

approximation of data x based on npc principal components

Examples

1
2
x = matrix(c(4,5,2,10,2,8,4,5,6), ncol = 3)
pcApprox(x, npc = 1)

hmumme/bmi585hmumme documentation built on Dec. 20, 2021, 4:46 p.m.