View source: R/getOutlierIds.R
getOutlierIds | R Documentation |
Return the IDs of flagged samples for objects of the outlier_map
class.
Samples are flagged based on the percent analytes (RFU columns) for a given
sample that were identified as outliers using the median absolute
deviation (MAD).
getOutlierIds(x, flags = 0.05, data = NULL, include = NULL)
x |
An object of class:
|
flags |
Numeric in |
data |
Optional. The data originally used to create the map |
include |
Optional. Character vector of column name(s) in |
A data.frame
of the indices (idx
) of flagged samples, along
with any additional variables as specified by include
.
Caleb Scheidel
Other Calc Map:
calcOutlierMap()
,
plot.Map()
# flagged outliers
# create a single sample outlier (12)
out_adat <- example_data
apts <- getAnalytes(out_adat)
out_adat[12, apts] <- out_adat[12, apts] * 10
om <- calcOutlierMap(out_adat)
getOutlierIds(om, out_adat, flags = 0.05, include = c("Sex", "Subarray"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.