na_pca: Dimmensionality reduction to visualize missing data

Description Usage Arguments See Also Examples

View source: R/dimensionality-reduction.R

Description

Dimmensionality reduction to visualize missing data

Usage

1
2
3

Arguments

data

a data.frame.

formula

an object of class "formula": a symbolic description of the model to be fitted.

...

further arguments passed to other methods.

plot

if TRUE prints plots of the first two components extracted using PCA or t-SNE with highlited missing values.

See Also

princomp, Rtsne

Examples

1
2
3
4
5
6
7
set.seed(1234)

dat <- mtcars
dat$disp[sample.int(nrow(dat), 10)] <- NA

na_pca(dat, disp ~ mpg + cyl + disp)
na_tsne(dat, disp ~ ., perplexity = 10)

twolodzko/misster documentation built on May 24, 2019, 2:54 p.m.