Re: [R] importing data in excel

2004-08-30 Thread Thomas Petzoldt
Uwe Ligges wrote: Gerardo Prieto Blanco wrote: Hello, I need to care excel data to be used in R,..., how do I make it? Thank you and greetings, Gerardo Prieto Please read the R Data Import/Export manual! Uwe Ligges Hello Gerardo, I completely agree with Uwe, and the following simple example may

Re: [R] Rcmdr X11 protocol error message

2004-08-30 Thread Peter Dalgaard
Michael Bibo [EMAIL PROTECTED] writes: I am using R 1.9.1 with R Commander GUI under Windows at work, and under Linux Mandrake 10 OR at home. I am having no problems running R Commander under windows. Under Linux, though, the opening and sometimes closing of windows from R Commander produces

[R] Multiple lapply get-around

2004-08-30 Thread Manoj - Hachibushu Capital
I am faced with a situation wherein I have to use multiple lapply's. The pseudo-code could be approximated to something as below: For each X from i=1 to n For each Y based on j=1 to m For each F from 1 to f Do some calculation based on Fij

Re: [R] importing data in excel

2004-08-30 Thread ronggui wong
if under windows ,the command works well,but under linux ,it does NOT,as linux can keep couples of file in clipboar.so i want to know how to do similar thing under linux.anyone knows? the erroe msg is as follow: dat-read.table('clipboard',header=T) Error in file(file, r) : unable to open

Re: [R] Rcmdr X11 protocol error message

2004-08-30 Thread John Fox
Dear Peter, On 30 Aug 2004 17:41:10 +0200 Peter Dalgaard [EMAIL PROTECTED] wrote: John Fox [EMAIL PROTECTED] writes: Dear Peter and Michael, Peter: Thank you for fielding this question. Michael initially contacted me directly, and I suggested that he write to the list since I didn't

[R] outer question

2004-08-30 Thread Laura Holt
Dear R People: I need to construct a matrix of the order (pn-1) x (pn-1). The elements can be constructed as z[i,j] = pn - max(i,j) for (i,j) in 1:(pn - 1) I was messing with a toy example in which n=4, p=3 and tried to use outer: x - 1:11 y - 1:11 outer(x,y,function(x,y)12-max(x,y)) Error in

[R] solution to outer question

2004-08-30 Thread Laura Holt
Hi again! pmax works instead of max. outer(x,y,function(x,y)12 - pmax(x,y)) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 11 109876543 2 1 [2,] 10 109876543 2 1 [3,]999876

[R] solution to outer question

2004-08-30 Thread Laura Holt
Hi again! pmax works instead of max. outer(x,y,function(x,y)12 - pmax(x,y)) [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 11 109876543 2 1 [2,] 10 109876543 2 1 [3,]999876

Re: [R] Rcmdr X11 protocol error message

2004-08-30 Thread Peter Dalgaard
John Fox [EMAIL PROTECTED] writes: My Linux system badly needs updating, so I can't check this directly now. Does this problem occur with HTML help? As well, setting the Rcmdr grab.focus option to FALSE might get things unstuck. Removing the grab.focus seems to help. Wouldn't expect HTML help

Re: [R] Wrong result with cor(x, y, method=spearman, use=complete.obs) with NA's???

2004-08-30 Thread Thomas Lumley
On Mon, 30 Aug 2004, [iso-8859-1] Karl Knoblick wrote: Hallo! Is there an error in cor to calculate Spearman correlation with cor if there are NA's? cor.test gives the correct result. At least there is a difference. Or am I doing something wrong??? The help for cor() says

RE: [R] FIML in lme

2004-08-30 Thread Doran, Harold
I'm not sure you are correct on this. Other texts on multilevel models (e.g., Raudenbush and Bryk, Kreft and Deeuw, and Singer Willett) all use FiML as a synonym for ML. In fact, Kreft and Deleeuw go as far to even state they are the same thing (see page 131). When you run a model in HLM

[R] initialization error with XEmacs init.el file

2004-08-30 Thread Melanie A. Link-Perez
I have successfully used XEmacs on my home PC for several months. On 8/25/04 I downloaded R version 1.9.1 (rw1091) from one of the R mirror sites, XEmacs installer (setup.exe) from http://www.xemacs.org/Download/win32/, and Jim Fox's latest configuration files (fox-ess-config.zip) from

RE: [R] initialization error with XEmacs init.el file

2004-08-30 Thread John Fox
Dear Melanie, Are you using forward-slashes (/) or double-back-slashes (\\) to separate directories, as I believe you should, and placing quotes around the path? I hope that this helps, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [R] Generalized Singular Value Decomposition (GSVD)

2004-08-30 Thread Kjetil Brinchmann Halvorsen
Camarda, Carlo Giovanni wrote: Iæm not really sure what you mean by generalized SVD, but have you had a look at CRAN package PTAk, which says to have some extensions of the SVD (but poosibly not the one you want...?) Kjetil Halvorsen Dear R-users, I couldn't find a function or some help in

[R] (no subject)

2004-08-30 Thread Loke Chok Kang
Hi, Sorry, I have a problem that require some help. As I am doing a project with R and this project requires me to do a lot of plotting as I run my simulation, I need R to help me store my plots automatically as the simulation is run. Could anyone advise me on how this can be done? If possible

RE: [R] (no subject)

2004-08-30 Thread Austin, Matt
You need to use a device to print to such as postscript(file=/where/to/put/file/filename.ps) ##your plotting code here dev.off() Writing a plot at each iteration of your simulation can impact the runtime greatly. Please read the posting guide at the bottom of the e-mail, it can help

RE: [R] (no subject)

2004-08-30 Thread Austin, Matt
A correction. You either need to open the plotting device prior to the simulation that includes your plotting commands and close it after the simulation or have the name change dynamically in your simulation so that the runs go in separate files. An example of the first method would be

Re: [R] Rcmdr X11 protocol error message

2004-08-30 Thread Michael Bibo
John Fox jfox at mcmaster.ca writes: Dear Peter and Michael, Peter: Thank you for fielding this question. Michael initially contacted me directly, and I suggested that he write to the list since I didn't know the possible source of the problem, had never seen it (either under Windows or