do_pca: Perform PCA on dataframe

Description Usage Arguments Value Examples

Description

Perform PCA on dataframe

Usage

1
do_pca(.data, product, liking = NULL, scale = TRUE)

Arguments

.data

a dataframe or tibble.

product

name of column containing product information.

liking

name of column containing hedonic liking (default to NULL).

scale

whether to scale data to unit of variance (default to TRUE)

Value

Returns a list containing information of PCA results.

Examples

1
2
sensochoc_means %>% do_pca(product = "Product")
do_pca(sensochoc_means, product = "Product")

aswansyahputra/sensolution documentation built on May 26, 2019, 2:32 a.m.