[R] KMEANS output...

Omer Bakkalbasi obakkalbasi at chainalytics.com
Tue Jun 14 18:40:17 CEST 2005


Using R 2.1.0 on Windows

2 questions:
1. Is there a way to parse the output from kmeans within R?
2. If the answer to 1. is convoluted or impossible, how do you save the
output from kmeans in a plain text file for further processing outside R?
 
Example:
> ktx<-kmeans(x,12, nstart = 200)
I would like to parse ktx within R to extract cluster sizes, sum-of-squares
values, etc., OR save ktx in a plain text file in Windows to post-process it
with a parser I would have to write. 

Thanks!

Omer 
Cell: (914) 671-7447




More information about the R-help mailing list