esBy | R Documentation |
Group samples or features by variable and apply a function
Group samples or features by variable and apply a function
esBy(X, GROUP, FUN, ...) ## S4 method for signature 'NanoStringExperiment' esBy(X, GROUP, FUN, ..., simplify = TRUE)
X |
NanoStringExperiment object |
GROUP |
colData header to group by |
FUN |
function to apply |
... |
parameters to pass to FUN |
simplify |
boolean indicating whether to simplify output |
list or matrix of results
list or matrix of results
data(exampleNSEData) esBy(testExp, GROUP = "cell_line", FUN = function(x) { assayDataApply(x, MARGIN = 1, FUN = mean, elt = "exprs") }) data(exampleNSEData) esBy(testExp, GROUP = "cell_line", FUN = function(x) { assayDataApply(x, MARGIN = 1, FUN = mean, elt = "exprs") })
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.