Learn R Programming

LLMing (version 1.1.0)

vector_SNN: Aggregate dataframe into mean feature vectors Aggregrate dataframe into mean feature vectors

Description

For each row of the SNN index matrix, this function takes the rows of reference dataframe, z, and computes their column means, yielding one mean vector per observation.

Usage

vector_SNN(z, snn)

Value

Dataframe of same dimensions as z

Arguments

z

Numeric dataframe

snn

Dataframe of shared nearest neighbors indices