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! Until now i use the ODBC-Package and save both in a access-file and copy them together, but i can't be sure that the sorting is the same?! Exist their a core-principal to match data with id's(Primary Key) in R & how i can set a filter for a data.frame with headers (i.e. Pseudocode: mean(X), if (Y=1) )? Thanks for advance regards,Christian _______________________________________________________________________ 1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de IhrName at web.de, 8MB Speicher, Verschluesselung - http://freemail.web.de -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Ortega Fernandez, Carlos (carlos)
2001-Aug-29 15:21 UTC
[R] Matching Data & Results (Fuzzy-Cluster-Analysis)
Please check the help and the examples of: - merge() - match() I think that is what you are looking for. Carlos Ortega. -----Mensaje original----- De: C. Schulz [mailto:ozric at web.de] Enviado el: mi?rcoles 29 de agosto de 2001 14:13 Para: r-help at stat.math.ethz.ch Asunto: [R] Matching Data & Results (Fuzzy-Cluster-Analysis) 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! Until now i use the ODBC-Package and save both in a access-file and copy them together, but i can't be sure that the sorting is the same?! Exist their a core-principal to match data with id's(Primary Key) in R & how i can set a filter for a data.frame with headers (i.e. Pseudocode: mean(X), if (Y=1) )? Thanks for advance regards,Christian _______________________________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._