View source: R/performanceEvaluationLib.R
updateSigNamesWithMatchTable | R Documentation |
This function is part of the workflow of simulating a dataset, testing a signature extraction and evaluating the signatures/exposures accuracy. The function evaluatePerformanceSignatureSimilarity returns a table matching true signatures with estimated signatures. The updateSigNamesWithMatchTable function can be used with the match table to replace the names of the estimated signatures with those of the true signatures, for example in the matrix of estimated exposures. See example below.
updateSigNamesWithMatchTable(signames, matchTable)
signames |
vector of signature names, typically estimated signatures, that need to be replaced |
matchTable |
table with matched true and estimated signature names |
updated signames vector
sigsPerf <- evaluatePerformanceSignatureSimilarity(true_signatures,
estimated_signatures)
updatedNames <- updateSigNamesWithMatchTable(signames,
sigsPerf$matchTable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.