[R] Matching Data & Results (Fuzzy-Cluster-Analysis)
Winfried Theis
theis at statistik.uni-dortmund.de
Wed Aug 29 14:58:02 CEST 2001
Hello Christian!
On 29-Aug-01 C. Schulz wrote:
> Hello,
> i use i.e. the cluster-package and the
> fanny-object to construct some cluster's and get
> the membership'S for every "Person" & Cluster !
>
> My finally problem is to match efficient the data
> and the results's togehter in one table!
I suppose you want to get a matrix of the form:
Some Variables measured per "Person" | Resulting memberships per cluster
X_1 X_2 ... X_p | M_1 M_2 ... M_k
The easiest way to do this is:
> fobject<-fanny(data)
> resultsanddata<-cbind(data,fobject$membership)
This gives you a matrix like the one described above. You could use data.frame
instead of cbind and define colnames more to your liking, see the helppage for
more details.
Regards,
Winfried
----------------------------------
E-Mail: Winfried Theis <theis at statistik.uni-dortmund.de>
Date: 29-Aug-01
Time: 13:47:57
Dipl.-Math. Winfried Theis, Fachbereich Statistik, Graduiertenkolleg
"Angewandte Statistik"
Universität Dortmund, 44221 Dortmund
Tel.: +49-231-755-5903 FAX: +49-231-755-4387
----------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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