[R] clustering with cosine correlation
Dear All Do you know how to make a heatmap and use cosine correlation for clustering? This is what my colleague can do in gene-math and I want to do in R but I don't know how to. Thanks a lot Leila __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] heatmap
Hi All Has anyone used correlation (Pearson or cosine or others) for clustering in heatmaps? If so, could you please tell me how? Thanks Leila __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] re-order the rows of a data frame accroding to a specified order of some column
You can also write x[match(z,x[,2]),]. Leila on 2010/08/16 06:36 AM RICHARD M. HEIBERGER said the following: Yes, x[order(order(z)),] Two uses of order are needed, as shown. Rich On Sun, Aug 15, 2010 at 11:47 PM, Leon Yee wrote: Dear all, I have a data frame with several columns, and I have the specified order of a given column. How can I re-order the rows of my data frame accroding to this specified order? for example, x = data.frame( num = 1:26, alpha = letters[1:26], stringsAsFactors=FALSE) z = sample(x$alpha, replace=FALSE) Can I re-order x accroding to z ? Thanks, Leon [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] running a program later
Hi ALL I want to run a program on my office computer, but for some reason I have to run it later when I am not in the office anymore. Is there a way to do it? Can I run a program now but in the beginning I say that the rest should be run 3 hours later for example? Thanks a lot Leila __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.