reconstructData: Reconstruct corrected data from Harman results

Description Usage Arguments Value See Also Examples

View source: R/reconstructData.R

Description

Method which reverts the PCA factorisation for instances of harmanresults. This allows the original or corrected data to be returned back from the PCA domain into the original data domain.

Usage

1
reconstructData(object, this = "corrected")

Arguments

object

An instance of harmanresults.

this

string, legal values are original or corrected.

Value

matrix of data

See Also

harman harmanresults

Examples

1
2
3
4
5
6
library(HarmanData)
data(OLF)
expt <- olf.info$Treatment
batch <- olf.info$Batch
olf.harman <- harman(olf.data, expt, batch)
olf.data.corrected <- reconstructData(olf.harman)

Harman documentation built on Nov. 8, 2020, 7:50 p.m.