microClust {DepecheR} | R Documentation

## This function is the core of the groupProbPlot. See the documentation there for details.

### Description

This function is the core of the groupProbPlot. See the documentation there for details.

### Usage

    microClust(
      dataCenter,
      dataNeigh,
      dataReturn,
      method = "median",
      k = 11,
      trim = 0
    )

### Arguments

`dataCenter` | The original data.
`dataNeigh` | The data for the neighbors. Often stronly overlapping with the dataCenter, but for internal reasons, this data cloud is larger than the dataCenter cloud.
`dataReturn` | The neighbor data that should be aggregated and sent back.
`method` | Should median or mean be calculated?
`k` | Number of neighbors.
`trim` | If mean of the neighbors is returned, should it be calculated with trimming?

### Value

A dataset with the same shape as dataCenter, filled with aggregated information from the k nearest neighbors.

[Package DepecheR version 1.2.2 Index]