r2cluster {ctc}R Documentation

Write to Cluster file format

Description

Converting data to Cluster format

Usage

r2cluster(data,labels=FALSE,colname="ACC",description=FALSE,file="cluster.txt",dec='.')

Arguments

file the path of the file
data a matrix (or data frame) which provides the data to put into the file
labels a logical value indicating whether we use the frist column as labels (UNIQID column for cluster file)
colname Should be one of: YORF,MCLID,CLID,ACC
description a logical value indicating whether we use the second column as description (NAME column for cluster file)
dec the character used in the file for decimal points

Note

Cluster is a program made by Michael Eisen that performs hierarchical clustering, K-means and SOM.

Cluster is copyrighted. To get or have information about Cluster: http://rana.lbl.gov/EisenSoftware.htm

Author(s)

Antoine Lucas, http://genopole.toulouse.inra.fr/~lucas/R

See Also

xcluster, r2xcluster, hclust

Examples

#    Create data
.Random.seed <- c(1,  416884367 ,1051235439)
m <- matrix(rep(1,3*24),ncol=3)  
m[9:16,3] <- 3 ; m[17:24,] <- 3    #create 3 groups
m <- m+rnorm(24*3,0,0.5)           #add noise
m <- floor(10*m)/10                #just one digits

r2cluster(m)


[Package ctc version 1.2.7 Index]