Learn R Programming

Rwclust (version 0.1.0)

create_weight_matrix: Construct sparse matrix from weighted edgelist

Description

Takes the weights from compute_kernel and creates weighted adjacency matrix

Usage

create_weight_matrix(edgelist, weights, ...)

Value

sparseMatrix

Arguments

edgelist

a dataframe with two columns

weights

a vector of weights

...

other parameters to be passed to Matrix::sparseMatrix()