powered by
These functions allow you to extract slots from objects of the class linearFilter.
linearFilter
alpha(x)na_removed(x)# S3 method for linearFilter mean(x, ...)# S4 method for linearFilter mean(x, ...)# S4 method for linearFilter colMeans(x)# S4 method for linearFilter rowMeans(x)# S4 method for linearFilter alpha(x)# S4 method for linearFilter na_removed(x)
na_removed(x)
# S3 method for linearFilter mean(x, ...)
# S4 method for linearFilter mean(x, ...)
# S4 method for linearFilter colMeans(x)
# S4 method for linearFilter rowMeans(x)
# S4 method for linearFilter alpha(x)
# S4 method for linearFilter na_removed(x)
a linearFilter object
arguments passed to or from other methods.
for mean: the mean of the original matrix
mean
for colMeans: a numeric vector with the column means
colMeans
for rowMeans: a numeric vector with the row means
rowMeans
for alpha: a numeric vector of length 4 with the alpha values.
alpha
for na_removed: a logical value indicating whether missing values were removed prior to the fitting of the filter.
na_removed
# NOT RUN { data(drugtarget) lf <- linear_filter(drugTargetInteraction, alpha = 0.25) alpha(lf) mean(lf) colMeans(lf) na_removed(lf) # }
Run the code above in your browser using DataLab