powered by
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.
linear_filter(y, alpha = 0.25, na.rm = FALSE)
a label matrix
a vector with 4 alpha values, or a single alpha value which then is used for all 4 alphas.
a logical value indicating whether missing values should be removed before calculating the row-, column- and total means.
an object of class linearFilter
linearFilter
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.
na.rm = FALSE
# NOT RUN { data(drugtarget) linear_filter(drugTargetInteraction, alpha = 0.25) linear_filter(drugTargetInteraction, alpha = c(0.1,0.1,0.4,0.4)) # }
Run the code above in your browser using DataLab