fromNNMatrix: From Nearest Neighbor Matrix

Description Usage Arguments Value Author(s) See Also Examples

Description

Converts a nearest neighbor matrix into a list that can be used with the jarvisPatrick function.

Usage

1

Arguments

data

A matrix containing integer valued indexes which represent items to be clustered. The index values contained in the matrix must be smaller than the number of rows in the matrix. Each row in the matrix represents one item and the columns are the nearest neighbors of that item.

names

The names for each row. The rownames of data will be used if not given.

Value

A list containing the slots "indexes" and "names".

Author(s)

Kevin Horan

See Also

jarvisPatrick

Examples

1
2
3
4
5
6
	data(apset)

	nn = nearestNeighbors(apset,cutoff=0.6)
	nnMatrix = nn$indexes

	cl = jarvisPatrick(fromNNMatrix(nnMatrix),k=2)


Search within the ChemmineR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.