Learn R Programming

gtexture (version 1.0.0)

kmeans_discrete: Kmeans clustering discretization

Description

Splitting of a vector of continuous values into k groups using kmeans. Used to discretize node labels/weights of a fitness landscape or node-weighted graph.

Usage

kmeans_discrete(nlevels)

Value

function that makes a numeric vector discrete

Arguments

nlevels

number of levels to split continuous vector into