Re: [R] SQL like function?

2007-09-08 Thread Takatsugu Kobayashi
(1, 3, 4)) library(sqldf) sqldf(select observation, observation in (select * from ID) `ID?` from DF) # or sqldf(select observation, observation in (1, 3, 4) `ID?` from DF) See home page at: http://sqldf.googlecode.com On 9/7/07, Takatsugu Kobayashi [EMAIL PROTECTED] wrote: Hi

Re: [R] SQL like function?

2007-09-06 Thread Takatsugu Kobayashi
Hi RUsers, I am wonder if I can search observations whose IDs matches any of the values in another vector, such as in MySQL. While I am learing MySQL for future database management, I appreciate if anyone could give me a hint. Suppose I have one 5*1 vector containing observation IDs and

Re: [R] A simple question about PRINCOMP

2007-05-10 Thread Takatsugu Kobayashi
Hi, I just wonder if this is a rounding error by the princomp command in R. Although this does not make much sense, using a hypothetical dataset, a, a-matrix(runif(1000),100,10) I did PCA with the princomp, and compared it with the results estimated with the eigen and the prcomp commands. And

[R] help for efficient loop

2007-03-07 Thread Takatsugu Kobayashi
Hi, I have been trying to minimize computation times in the following loops. I could successfully use lapply to minimize a lot simpler stuff. So I am trying to use lapply or sapply to minimize computing times again. The whole purpose is to create the X and Y coordinates using normal

Re: [R] Newbie questions about Wireframe

2007-03-04 Thread Takatsugu Kobayashi
Rusers: I have been looking into lattice manual to see how I can delete a plot frame and a box frame. I just want to show x label, y label, and the actual surface only. \Is this something I should define in axis.default? And how can I change the view perspective like persp(phi=, theta=)? I

Re: [R] Optimizing the loop for large data

2007-02-26 Thread Takatsugu Kobayashi
Rusers: I am trying to apply a quadratic discriminant function to find the best classification outcomes. 1 is assigned to the values greater than a threshold value; and 0 otherwise. I would like to see how the apparent error rates and the optimal error rate change with increasing threshold

Re: [R] Overlaying graphics

2007-02-23 Thread Takatsugu Kobayashi
Rusers: This is a very fundamental and silly question. How can I overlay different maps on the same x and y scales? I do neither want to change X and Y axes nor show different x and y ticks on top of each other. Thanks Taka Indiana University __

Re: [R] LOCFIT help

2006-01-06 Thread Takatsugu Kobayashi
Hi, I have started to learn local regression models so as to identify statistically significant peaks in urban areas, such as population densities and congestion. I successfully ran /locfit/ and got several information on the fit. Now I got stuck. This is a very silly question, but isn't the