Learn R Programming

xnet (version 0.1.11)

alpha: Getters for linearFilter objects

Description

These functions allow you to extract slots from objects of the class linearFilter.

Usage

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)

Arguments

x

a linearFilter object

...

arguments passed to or from other methods.

Value

for mean: the mean of the original matrix

for colMeans: a numeric vector with the column means

for rowMeans: a numeric vector with the row means

for alpha: a numeric vector of length 4 with the alpha values.

for na_removed: a logical value indicating whether missing values were removed prior to the fitting of the filter.

Examples

Run this code
# 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