[R] Automating the job?

Youngser Park parky at seas.gwu.edu
Wed Feb 28 21:51:33 CET 2001


Hi!

I just started to use R recently, and would like to ask a help about
automating the job.

I need to use "kmeans" function with my own 300 data files, and wonder if
it's possible to do it automatically. For example,

> library (mva)
> mydata <- read.table ("data1")
> cl <- kmeans(mydata, 5, 20)

and I just need to save "cl" info (i.e. the center info). Of course, I'll
have the data from "data1" to "data300".

Could someone please give me an advise how to do it, or any other
recommendation for this job? I'll run this either in Unix or Mac environment
using the version 1.2.1.

Thanks in advance.

- Youngser Park

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list