Re: [R] Error TukeyHSD

2004-08-27 Thread Prof Brian Ripley
You are trying to apply TukeyHSD to a linear regression. I think you want `diet' to be a factor, but it is not. (The warning message told you that.) The model needs to be coag.mod - aov(time ~ factor(diet), data=coag) Function aov happily accepts continuous covariates as it can also do ANCOVA.

Re: [R] Surprise when mapping matrix to image

2004-08-27 Thread Peter Dalgaard
Richard A. O'Keefe [EMAIL PROTECTED] writes: How about this addition to the documentation? The x axis corresponds to the rows of the matrix (first on the left to last on the right). The y axis corresponds to the columns of the matrix (first at the bottom to last at the top).

Re: [R] coplot and par

2004-08-27 Thread Prof Brian Ripley
On Thu, 26 Aug 2004, Mihai Nica wrote: R 1.9.1 on Win2000 or Win98SE. I am using coplot as follows: coplot(AVG~LRPI| REGION) the output seems normal but I get: Warning message: calling par(new=) with no plot From the NEWS file for R-patched: o coplot(..) doesn't give an

RE: [R] Keyboard input into functions

2004-08-27 Thread Prof Brian Ripley
On Fri, 27 Aug 2004, Manoj - Hachibushu Capital wrote: ?readline Yes, but a nearer equivalent to scanf in C is scan() which reads from the keyboard by default. -Original Message- [mailto:[EMAIL PROTECTED] On Behalf Of Neil Leonard Sent: Friday, August 27, 2004 2:04 PM Does

Re: [R] read.spss warning: unrecognized record type??

2004-08-27 Thread Peter Dalgaard
Michael Jerosch-Herold [EMAIL PROTECTED] writes: When using read.spss (library: 'foreign') I get the following warning message: Warning message: E:/R4win/mesamri.sav: Unrecognized record type 7, subtype 13 encountered in system file. I don't see anything wrong with record #7 in the

Re: [R] coplot and par

2004-08-27 Thread Prof Brian Ripley
On Fri, 27 Aug 2004, Prof Brian Ripley wrote: On Thu, 26 Aug 2004, Mihai Nica wrote: [...] This is the only explanation that I have for being unable to use par() with coplot for changing the way the xlab and ylab appears. xlab and ylab are not part of par -- see its help page.

Re: [R] text() with text, variables and math HOWTO?

2004-08-27 Thread Uwe Ligges
Johannes Graumann wrote: Hello, One more question from the 'abusing R for blotting - particularly anally' department: How can I in the expression below make the '%~~%' show up as the aprrox-sign I want it to be? Thanks for any hint, Joh text( 500,1.5, cex=0.75, substitute(

Re: [R] read.spss warning: unrecognized record type??

2004-08-27 Thread Raphael Schneider
On Friday 27 August 2004 02:55, Michael Jerosch-Herold wrote: When using read.spss (library: 'foreign') I get the following warning message: Warning message: E:/R4win/mesamri.sav: Unrecognized record type 7, subtype 13 encountered in system file. I don't see anything wrong with record #7

Re: [R] text() with text, variables and math HOWTO?

2004-08-27 Thread Thomas Petzoldt
Johannes Graumann wrote: Hello, One more question from the 'abusing R for blotting - particularly anally' department: How can I in the expression below make the '%~~%' show up as the aprrox-sign I want it to be? Thanks for any hint, Your code does not work because %~~% is a character string and

Re: [R] Newbie Question: Spatial Autocorrelation with R Tutorial?

2004-08-27 Thread Roger Bivand
On Wed, 25 Aug 2004, Jeff Hollister wrote: Howdy All, I am looking for some good tutorials (books, websites, whatever) for calculating/testing for Spatial Autocorrelation using R. Specifically, I am wanting to test for autocorrelation of a number of variables measured at a set of

Re: [R] Surprise when mapping matrix to image

2004-08-27 Thread Patrick Burns
Peter Dalgaard wrote: Richard A. O'Keefe [EMAIL PROTECTED] writes: [snip] Good idea, but perhaps not phrased sharply enough to catch the user's eye. How about something like this: Notice that image() interprets a matrix as a table of f(x_i, y_j), so the x axis corresponds to row number and

Re: [R] Surprise when mapping matrix to image

2004-08-27 Thread Peter Dalgaard
Patrick Burns [EMAIL PROTECTED] writes: Peter Dalgaard wrote: Richard A. O'Keefe [EMAIL PROTECTED] writes: [snip] Good idea, but perhaps not phrased sharply enough to catch the user's eye. How about something like this: Notice that image() interprets a matrix as a table of

[R] `its' questions

2004-08-27 Thread Ajay Shah
Problem 1: Often, when I'm dealing with its, str() breaks. Here's a bug demo. The first statements work fine -- library(its) # Make a series of all dates from 1/1/2000 to 10/1/2000; fill this up # with integers from 1 to 30 x1 - newIts(start=2000-01-01, end=2000-01-10, 1:30, ncol=3)

[R] About passing parameter to '.R' script file

2004-08-27 Thread Kishore, Tapake
Hi, I am trying the 'R' application for generating the data for the uploaded '.gpr' file. I have written script file named 'test.R'. Currently i have hardcoded the path of uploaded '.gpr' file in the script itself. I would like to know how to pass a command line parameter to the 'test.R'

Re: [R] About passing parameter to '.R' script file

2004-08-27 Thread Roger Bivand
On Fri, 27 Aug 2004, Kishore, Tapake wrote: Hi, I am trying the 'R' application for generating the data for the uploaded '.gpr' file. I have written script file named 'test.R'. Currently i have hardcoded the path of uploaded '.gpr' file in the script itself. Typically, you can write a

Re: [R] About passing parameter to '.R' script file

2004-08-27 Thread Wolski
Hi! You can do it indirectly e.g within a batch file. a) set an envirovment variable (the path to the file) b) access it from within you *.R script using ?Sys.getenv Hope it helps. Eryk *** REPLY SEPARATOR *** On 8/27/2004 at 4:36 PM Kishore, Tapake wrote: Hi, I am trying

Re: [R] `its' questions

2004-08-27 Thread Dirk Eddelbuettel
On Fri, Aug 27, 2004 at 04:08:40PM +0530, Ajay Shah wrote: Problem 1: Often, when I'm dealing with its, str() breaks. Here's a bug demo. The first statements work fine -- [...] Problem 2: I try to write an its out and read it back in, but the two don't seem to be conformable for matrix

[R] rbind for similar data frames

2004-08-27 Thread Gladys Castillo Jordán
Hi all: I have a problem when I try to concatenate two similar data frames with different number of rows using rbind. I did something like this: d-data.frame(a=1:10,b=2:11,c=3:12) e-data.frame(a=101:105,b=102:106,c=103:107) data=rbind(d,e) The resulting row enumeration is not sequentially

Re: [R] About passing parameter to '.R' script file

2004-08-27 Thread Prof Brian Ripley
There is another solution that the helpers might like to be aware of. Anything on the command line after --args is ignored but can be retrieved by commandArgs. So suppose I have a script quote.R: commandArgs()[-(1:3)] q() and a batch file quote.bat: Rterm.exe --slave --args %* quote.R Then

RE: [R] About passing parameter to '.R' script file

2004-08-27 Thread Kishore, Tapake
Hi, Thanks a lot for an instant reply. Actualy i am invoking the 'R' application from JAVA programme. I am using 'test.R' script file. Is the below command a right one or is there any other command option available. c:\\R\\rw1091\\bin\\R.exe CMD BATCH c:\\R\\rw1091\\bin\\test.R I need to

Re: [R] rbind for similar data frames

2004-08-27 Thread Thomas Petzoldt
Gladys Castillo Jordán wrote: Hi all: I have a problem when I try to concatenate two similar data frames with different number of rows using rbind. I did something like this: d-data.frame(a=1:10,b=2:11,c=3:12) e-data.frame(a=101:105,b=102:106,c=103:107) data=rbind(d,e) The resulting row

[R] gsub, backslash and xtable

2004-08-27 Thread P. B. Pynsent
R Version 1.9.1 (2004-06-21) Mac OS X.3.5 Dual 2GHz PowerPC G5 GUI = AQUA I have a data.frame comprising percentiles with the column headings containing % characters, e.g. (pp - colnames(temp2)) [1] 5% 10% 25% 50% 75% 90% 95% I use xtable to convert the data.frame to Latex but I want to

Re: [R] gsub, backslash and xtable

2004-08-27 Thread Prof Brian Ripley
On Fri, 27 Aug 2004, P. B. Pynsent wrote: R Version 1.9.1 (2004-06-21) Mac OS X.3.5 Dual 2GHz PowerPC G5 GUI = AQUA I have a data.frame comprising percentiles with the column headings containing % characters, e.g. (pp - colnames(temp2)) [1] 5% 10% 25% 50% 75% 90% 95% I use xtable

Re: [R] gsub, backslash and xtable

2004-08-27 Thread Peter Dalgaard
P. B. Pynsent [EMAIL PROTECTED] writes: I have a data.frame comprising percentiles with the column headings containing % characters, e.g. (pp - colnames(temp2)) [1] 5% 10% 25% 50% 75% 90% 95% I use xtable to convert the data.frame to Latex but I want to protect these % signs from Latex

[R] for (i in ...) { df[[i]]- .....}

2004-08-27 Thread Luis Rideau Cruz
R-help, In the following loop : for(i in 1:8) { cc[[i]]-tapply(test[,i+6],list(puntar=test$puntar),sum)/tapply(test[,5],list(puntar=test$puntar),sum) cbind.data.frame(cc[[1]],cc[[2]],cc[[3]],cc[[4]], cc[[5]],c[[6]],cc[[7]],cc[[8]]) } Is there anyway I can 'cbind.data.frame' the objects cc[[ i

[R] R-help,

2004-08-27 Thread Luis Rideau Cruz
R-help, __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] gsub, backslash and xtable

2004-08-27 Thread Rolf Turner
Peter Dalgaard wrote: ``The generic rule for backslashes is that you need twice as many as you thought'' And you have to apply that rule recursively! :-) cheers, Rolf Turner

[R] R-help,

2004-08-27 Thread Luis Rideau Cruz
R-help, __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] R-help,

2004-08-27 Thread Luis Rideau Cruz
R-help, __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] R-help,

2004-08-27 Thread Luis Rideau Cruz
R-help, __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] R-help,

2004-08-27 Thread Luis Rideau Cruz
R-help, __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] R-help,

2004-08-27 Thread Luis Rideau Cruz
R-help, __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] R-help,

2004-08-27 Thread Luis Rideau Cruz
R-help, __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] R-help,

2004-08-27 Thread Luis Rideau Cruz
R-help, __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] for (i in ...) { df[[i]]- .....}

2004-08-27 Thread Wiener, Matthew
Take a look at do.call. In your case, 'do.call(cbind, cc)' should work. Hope this helps, Matt Wiener -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luis Rideau Cruz Sent: Friday, August 27, 2004 9:12 AM To: [EMAIL PROTECTED] Subject: [R] for (i in

Re: [R] for (i in ...) { df[[i]]- .....}

2004-08-27 Thread Wolski
?do.call do.call(cc,cbind) Hope it helps Eryk *** REPLY SEPARATOR *** On 8/27/2004 at 2:11 PM Luis Rideau Cruz wrote: R-help, In the following loop : for(i in 1:8) { cc[[i]]-tapply(test[,i+6],list(puntar=test$puntar),sum)/tapply(test[,5],list(puntar=test$puntar),sum)

Re: [R] for (i in ...) { df[[i]]- .....}

2004-08-27 Thread Prof Brian Ripley
PLEASE don't call methods explicitly. I think do.call(cbind, cc) is what you are looking for, although probably you should be calling data.frame not cbind here. (Your lines are too long and contain no spaces so I am not going to try to fathom out what cc[[i]] really is. But I am

Re: [R] FIML in lme

2004-08-27 Thread Douglas Bates
F Z wrote: Hi I was asked if lme can use FIML (Full Information Maximum Likelihood) instead of REML or ML but I don't know the answer. Does anybody know if this is implemented in R? To the best of my knowledge, FIML is ML so the answer is yes. For example, the phrase Full Information Maximum

Re: [R] for (i in ...) { df[[i]]- .....}

2004-08-27 Thread Peter Dalgaard
Luis Rideau Cruz [EMAIL PROTECTED] writes: R-help, In the following loop : for(i in 1:8) { cc[[i]]-tapply(test[,i+6],list(puntar=test$puntar),sum)/tapply(test[,5],list(puntar=test$puntar),sum) cbind.data.frame(cc[[1]],cc[[2]],cc[[3]],cc[[4]], cc[[5]],c[[6]],cc[[7]],cc[[8]]) }

[R] Running R from CD?

2004-08-27 Thread Hans van Walen
At work I have no permission to install R. So, would anyone know whether it is possible to create a CD with a running R-installation for a windows(XP) pc? And of course, how to? Thank you for your help, Hans van Walen __ [EMAIL PROTECTED] mailing list

Re: [R] read.spss warning: unrecognized record type??

2004-08-27 Thread Thomas Lumley
On Fri, 27 Aug 2004, Raphael Schneider wrote: On Friday 27 August 2004 02:55, Michael Jerosch-Herold wrote: When using read.spss (library: 'foreign') I get the following warning message: Warning message: E:/R4win/mesamri.sav: Unrecognized record type 7, subtype 13 encountered in

Re: [R] Running R from CD?

2004-08-27 Thread asemeria
You can simply start a Linux live distribution including R (for example bio-knoppix) from CD, but you have to restart pc with cd inside. A.S. Alessandro Semeria Models and Simulations Laboratory Montecatini Environmental Research Center (Edison Group), Via Ciro

Re: [R] Running R from CD?

2004-08-27 Thread Prof Brian Ripley
On Fri, 27 Aug 2004, Hans van Walen wrote: At work I have no permission to install R. So, would anyone know whether it is possible to create a CD with a running R-installation for a windows(XP) pc? And of course, how to? Yes, for a suitable definition of `CD'. (You need the extensions which

[R] degrees of freedom (lme4 and nlme)

2004-08-27 Thread Alexandre Galvão Patriota
Hi, I'm having some problems regarding the packages lme4 and nlme, more specifically in the denominator degrees of freedom. I used data Orthodont for the two packages. The commands used are below. require(nlme) data(Orthodont) fm1-lme(distance~age+ Sex, data=Orthodont,random=~1|Subject,

Re: [R] Running R from CD?

2004-08-27 Thread Wolski
Hi! Make a isntallation of R on a PC where it is allowed. Install all packages you need. Burn the installation folder (rw1091) on the CD. Start R by clicking on Rgui.exe in the bin folder (rw1091/bin). Or set a path on the command line to (CD drive letter) :\rw1091\bin Or create a shortcut. This

Re: [R] coplot and par

2004-08-27 Thread Mihai Nica
Yes, I was trying cex.lab(). Now I understand why it didn't work. Sincerely, Mihai Nica Jackson State University 155 B Parkhurst Dr. Jackson, MS 39202 601 969 5423 - Original Message - From: Prof Brian Ripley [EMAIL PROTECTED] To: Mihai Nica [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

Re: [R] text() with text, variables and math HOWTO?

2004-08-27 Thread Johannes Graumann
Thanks everybody! Joh On Fri, 27 Aug 2004 09:37:12 +0200 Uwe Ligges [EMAIL PROTECTED] wrote: Johannes Graumann wrote: Hello, One more question from the 'abusing R for blotting - particularly anally' department: How can I in the expression below make the '%~~%' show up as the

Re: [R] selecting unique columns of a matrix/data frame

2004-08-27 Thread James W. MacDonald
Stephen Nyangoma wrote: Hi all, I have a very high dimensional data and apparently there are several columns that contain similar information (some columns are equal). I want to form a matrix/data frame consisting of unique columns. Does anyone have an efficient way of getting out these columns. A

[R] Reading SAS data into R

2004-08-27 Thread Søren Højsgaard
Dear all, One of my students (whom I am trying to convince to use R) wants to get a fairly large SAS dataset into R (about 150mB). An obvious and simple thing she tried was to write the dataset as a .csv-file and then read that into R, but that takes forever (or something close to that..). The

Re: [R] Reading SAS data into R

2004-08-27 Thread Sundar Dorai-Raj
Søren Højsgaard wrote: Dear all, One of my students (whom I am trying to convince to use R) wants to get a fairly large SAS dataset into R (about 150mB). An obvious and simple thing she tried was to write the dataset as a .csv-file and then read that into R, but that takes forever (or something

Re: [R] Reading SAS data into R

2004-08-27 Thread David Forrest
On Fri, 27 Aug 2004, Sundar Dorai-Raj wrote: Søren Højsgaard wrote: Dear all, One of my students (whom I am trying to convince to use R) wants to get a fairly large SAS dataset into R (about 150mB). An obvious and simple thing she tried was to write the dataset as a .csv-file and

[R] ANCOVA

2004-08-27 Thread Matt Oliver
Dear R-help list, I am attempting to understand the proper formulation of ANCOVA's in R. I would like to test both parallelism and intercept equality for some data sets, so I have generated an artificial data set to ease my understanding. This is what I have done #Limits of random error added

[R] Plotting irregular grid as image or persp

2004-08-27 Thread David Forrest
Hi, I have an array of 2d node locations and an array triangles, and would like to plot something like a image or persp. An example of doing it with rgl is: library(ncdf) library(rgl) # wget http://www.maplepark.com/~drf5n/extras/teapot.nc teapot-open.ncdf(teapot.nc)

RE: [R] Reading SAS data into R

2004-08-27 Thread Gilpin, Scott
-Original Message- From: [EMAIL PROTECTED] [mailto:r-help- [EMAIL PROTECTED] On Behalf Of Søren Højsgaard Sent: Friday, August 27, 2004 11:46 AM To: [EMAIL PROTECTED] Cc: Søren Højsgaard Subject: [R] Reading SAS data into R Dear all, One of my students (whom I am trying to