Learn R Programming

Harman (version 1.0.2)

reconstructData: Reconstruct corrected data from Harman results

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

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

Run this code
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)

Run the code above in your browser using DataLab