Re: [R] R on ESS

2010-09-17 Thread Erik Iverson
On 09/17/2010 09:52 PM, Stephen Liu wrote: Hi folks, Debian 504 64-bit Emacs Version 22.1.1 I have Emacs+ESS running on the box. R can work on ESS. But the fonts on the menu bar (top) of Emacs are NOT clear, difficult to read, grey foreground. I have been googling around for solution withou

Re: [R] removing specific rows from array

2010-09-17 Thread Michael Bedward
Here's one way... treats <- c("t0", "t1", "t2", "t3") n <- length(treats) n2 <- choose(n-1, n-2) comb <- matrix("", nrow=n*n2, ncol=n-1) k <- 1 for (i in 1:n) { comb[k:(k+n2-1), ] <- cbind(treats[i], t(combn(treats[-i], n-2))) k <- k + n2 } It doesn't get any marks for conciseness but it shou

[R] How to check the available of a package on R repo

2010-09-17 Thread Stephen Liu
Hi folks, Debian 504 64-bit What is the correct syntax to check the available of a package on R repo? > available.packages("emacs", "OS_type=linux") Warning: unable to access index for repository emacs Package Version Priority Depends Imports LinkingTo Suggests Enhances OS_type License

Re: [R] How to check the available of a package on R repo

2010-09-17 Thread Erik Iverson
What are you trying to do? Did you look at the arguments for the first argument of ?available.packages ? What did you expect "emacs" to do? On 09/17/2010 10:20 PM, Stephen Liu wrote: Hi folks, Debian 504 64-bit What is the correct syntax to check the available of a package on R repo? avai

Re: [R] How to check the available of a package on R repo

2010-09-17 Thread Stephen Liu
Hi Erik, I try to find out whether Emacs/ESS is available on R repo. What is its versiohn? B.R. Stephen L - Original Message From: Erik Iverson To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, September 18, 2010 12:01:47 PM Subject: Re: [R] How to check the available of a packa

Re: [R] R on ESS (SOLVED)

2010-09-17 Thread Stephen Liu
Hi Erik, I have Emacs 22 upgraded to Emacs 23. The latter is available on Debian backport repo. The menu is very clear and easy to read. Thanks B.R. Stephen L - Original Message From: Erik Iverson To: Stephen Liu Cc: r-help@r-project.org Sent: Sat, September 18, 2010 11:08:17 AM

Re: [R] Matrix- create mean/min/max/stdev on column of matrix or rows?

2010-09-17 Thread William Revelle
to get mean, sd, min, max, trimmed mean, median, se, skew, and kurtosis of a matrix or data frame, try describe in the psych package. At 10:41 PM -0300 9/17/10, Henrique Dallazuanna wrote: Content-Type: text/plain Content-Disposition: inline Content-length: 659 Try this: apply(m, 1, summar

[R] help manual on R on ESS

2010-09-17 Thread Stephen Liu
Hi folks, R on ESS Why it is unable to pop up help manual on "R on ESS"? ?layout Error in help("layout", htmlhelp = FALSE) : unused argument(s) (htmlhelp = FALS ?plot Error in help("plot", htmlhelp = FALSE) : unused argument(s) (htmlhelp = FALSE) etc. But they work on R console and pop

Re: [R] help manual on R on ESS

2010-09-17 Thread Bill.Venables
This is an ESS question, not an R one. The problem is that the argument names to the function help() have changed in recent releases of R, and "htmlhelp" is no longer an accepted argument. The replacement argumennt is now help_type (with default value getOption("help_type")). This may have be

[R] Drawing Heatmap using gplots

2010-09-17 Thread khush ........
Hi, I am using heatmap.2 of gplots to make heatmaps of my the attached file. I am giving my code for the same .. library(gplots) x=read.table("1.txt", header=TRUE) mat=data.matrix(x) heatmap.2(mat, col=greenred(75), Rowv=TRUE, Colv=TRUE, distfun = dist, hclustfun = hclust, dendro

[R] Drawing Heatmap using gplots

2010-09-17 Thread khush ........
Hi, I am using heatmap.2 of gplots to make heatmaps of my the file. I am giving my code for the same .. library(gplots) x=read.table("1.txt", header=TRUE) mat=data.matrix(x) heatmap.2(mat, col=greenred(75), Rowv=TRUE, Colv=TRUE, distfun = dist, hclustfun = hclust, dendrogram = c(

Re: [R] Can I save my console contents automatically?

2010-09-17 Thread Nobuaki Michihata
Hello Greg and David, Thank you for your help! I forgot to write about my Mac OS version. System Version: Mac OS X 10.6.4 (10F569) Kernel Version: Darwin 10.4.0 version.string R version 2.11.1 (2010-05-31) I tried three examples. Here are the results. Thank you. *** ex1. comman

<    1   2