performKmeans {phantasus} | R Documentation

## K-means clusterisation.

### Description

`performKmeans` returns a vector of corresponding clusters for each gene from a given ExpressionSet.

### Usage

    performKmeans(es, columns = c(), rows = c(), k, replacena = "mean")

### Arguments

`es` | ExpressionSet object.
`columns` | List of specified columns' indices (optional), indices start from 0
`rows` | List of specified rows' indices (optional), indices start from 0
`k` | Expected number of clusters.
`replacena` | Method for replacing NA values in series matrix (mean by default)

### Value

Vector of corresponding clusters, serialized to JSON.

### Examples

    ## Not run:
    data(es)
    performKmeans(es, k = 2)

    ## End(Not run)

[Package phantasus version 1.0.2 Index]