isubset {resemble}R Documentation

iterator that re-organize and subset a matrix based on dissimilarity matrix (used in mbl)

Description

internal

Usage

isubset(x, Dx = NULL, D, k, by = "column")

Arguments

x

an input matrix

Dx

a (symmetric) cross-dissimilarity matrix of x

D

a distance matrix between x and another matrix

k

matrix number of neighbours (rows) to keep

by

'column' or 'row'

Details

isubset will look at the order of knn in each col of D and re-organize the rows of x accordingly

Value

an object of class iterator giving a list with (a) a subset of the input matrix with rows re-arranged in the order of the distance vector, (b) the distance vector, (c) the order of the distance vector

Author(s)

Antoine Stevens


[Package resemble version 1.2.2 Index]