sortedNeighbors: Perform a single iteration of sorted neighbors.

Description Usage Arguments Value

View source: R/sortedNeighbors.R

Description

sortedNeighbors sorts the input data frame on the specified sort key and returns all neighbors within a specified window.

Usage

1
sortedNeighbors(dat, key, windowSN, ID)

Arguments

dat

Data frame. Data used for sorting and discovering neighbors.

key

Integer or character vector. The columns on which to construct the sort key.

windowSN

Integer value. Size of sliding window to use during sorted neighbrs.

ID

Integer or character value. Identifiable column in dat.

Value

A data frame with 2 columns and n rows, each row containing neighbor pairs.


mPloenzke/bsnR documentation built on June 30, 2018, 9:11 a.m.