Description Usage Arguments Details Value Examples
View source: R/linear_filter.R
This function fits a linear filter over a label matrix. It calculates the row, column and total means, and uses those to construct the linear filter.
1 | linear_filter(y, alpha = 0.25, na.rm = FALSE)
|
y |
a label matrix |
alpha |
a vector with 4 alpha values, or a single alpha value which then is used for all 4 alphas. |
na.rm |
a logical value indicating whether missing values should be removed before calculating the row-, column- and total means. |
If there are missing values and they are removed before calculating the
means, a warning is issued. If na.rm = FALSE
and there are
missing values present, the outcome is, by definition, a matrix filled
with NA values.
an object of class linearFilter
1 2 3 | data(drugtarget)
linear_filter(drugTargetInteraction, alpha = 0.25)
linear_filter(drugTargetInteraction, alpha = c(0.1,0.1,0.4,0.4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.