Learn R Programming

prodlim (version 2018.04.18)

meanNeighbors: Helper function to obtain running means for prodlim objects.

Description

Compute average values of a variable according to neighborhoods.

Usage

meanNeighbors(x, y, ...)

Arguments

x

Object of class "neighborhood".

y

Vector of numeric values.

Not used.

See Also

neighborhood

Examples

Run this code
# NOT RUN {
meanNeighbors(x=1:10,y=c(1,10,100,1000,1001,1001,1001,1002,1002,1002))

# }

Run the code above in your browser using DataLab