scrub: Scrub down and tidy up the constructed analysis results.

Description Usage Arguments Value See Also Examples

View source: R/scrub.R

Description

Scrub down and tidy up the constructed analysis results.

Usage

1
2
3
4
5
6
7
8
9
scrub(data, ...)

## S3 method for class 'pls_bp'
scrub(
  data,
  output = c("mvr_object", "default", "scores", "loadings", "score_corr",
    "explained_var"),
  ...
)

Arguments

data

The blueprint data object.

...

Other arguments passed to methods.

output

Selecting what to output from model.

Value

Outputs a cleaned up version of the constructed analysis.

See Also

See also tidy_up() for pls tidying.

Examples

1
2
3
4
5
ds <- design(iris, 'cor')
ds <- add_settings(ds)
ds <- add_variables(ds, 'xvars', c('Sepal.Length', 'Sepal.Width'))
ds <- construct(ds)
scrub(ds)

mason documentation built on July 1, 2020, 5:48 p.m.