pcApprox: BMI585 final project: pcApprox function dowmscale the data's...

Description Usage Arguments Value Examples

View source: R/pcApprox.R

Description

This functions accept a numberical dataframe

Usage

1
pcApprox(t, npc)

Arguments

t:

a numerical dataframe for dimensionality reduction

Value

the_result[,1:npc]: a dataframe which is the PCA conversion of the input x with npc dimensions

Examples

1
2
3
data(iris)
t<- iris[1:100,1:4]
pred <- pcApprox(t,2)

shaoyanpan/BMI585final2 documentation built on Dec. 23, 2021, 1:20 a.m.