Re: [R] SQL like function?

2007-09-08 Thread Takatsugu Kobayashi
Hi Gabor, Wow, this is awesome although I eventually should learn MySQL for integrating it on web-based DB management using PHP or Perl, this is a very helpful tool for me to start with! Thank you very much Gabor Grothendieck wrote: Others have already pointed out %in% but regarding

Re: [R] SQL like function?

2007-09-08 Thread Gabor Grothendieck
Great. Regarding the web, note that there are actually quite a few R web projects as well: http://www.lmbe.seu.edu.cn/CRAN/doc/FAQ/R-FAQ.html#R-Web-Interfaces I have used rpad (www.rpad.org) which has an integrated web server right in the R package making setup a non-issue. On 9/8/07,

Re: [R] Lisp-like primitives in R

2007-09-08 Thread Peter Dalgaard
François Pinard wrote: [Roland Rau] [François Pinard] I wonder what happened, for R to hide the underlying Scheme so fully, at least at the level of the surface language (despite there are hints). To further foster portability, we chose to write R in ANSI

[R] Using clustering functions

2007-09-08 Thread uv
Hi. I need to use a few different clustering functions. I managed to run the kmeans() one which is in my stats library, but I can't use any function, such as agnes(), that is in my cluster library. Any idea how to access other libraries? Thanks! -- View this message in context:

[R] Covariates and clustering of extremes

2007-09-08 Thread Dag J. Steinskog
I am looking at some extremes, and I want to implement covariates in my analysis. My work is on daily datasets, and I use the cluster of exceedences approach in fpot (evd-package) to estimate the parameters in the General Pareto Distribution. How to include covariates like e.g. time is my

Re: [R] Plotting lines to sets of points

2007-09-08 Thread Jim Price
# Create a matrix of ball locations # You'd do this using the calls within your points function balls - matrix(c(0,50,25,-150,-100,-50), ncol=2, byrow=F) # Draw a line from the origin to each ball location apply(balls, 1, function(x) lines(c(125, x[1]), c(-210, x[2]), col='red')) A more

Re: [R] enable object name to be called as object (a dataset)

2007-09-08 Thread Jim Price
a - 1:3 b - 11:13 c - 21:23 names - c('a','b','c') do.call(data.frame, list(sapply(names, function(x) get(x runner wrote: What I am trying to do is as follows: - I have listed names of all wanted objects (datasets A,B,C... ) in current workspace as a vector: obj -

Re: [R] FW: variable format

2007-09-08 Thread Martin Becker
Frank E Harrell Jr wrote: Martin Becker wrote: Dear Cory, I am not familiar with SAS, but is this what you are looking for? divisionTable - matrix(c(1, New England, 2, Middle Atlantic, 3, East North Central, 4,

Re: [R] Matlab's lsqnonlin

2007-09-08 Thread Martin Maechler
KateM == Katharine Mullen [EMAIL PROTECTED] on Fri, 7 Sep 2007 20:07:41 +0200 (CEST) writes: KateM The thread you linked to regarding Levenberg-Marquardt's supposed lack of KateM availability is from 2001; it has been possible to get KateM to the MINPACK implementation of

[R] argument 'lib' is missing: using '/usr/lib/R/library'

2007-09-08 Thread Paul Smith
Dear All, When installing packages, I get the following warning: install.packages(sqldf) Warning in install.packages(sqldf) : argument 'lib' is missing: using '/usr/lib/R/library' Any ideas? The details of my R installation are: version _ platform i386-redhat-linux-gnu

Re: [R] argument 'lib' is missing: using '/usr/lib/R/library'

2007-09-08 Thread Gabor Csardi
Paul, what is the question? If the question is why you get this warning message, the reason is that the 'lib' argument is missing and install.packages is using '/usr/lib/R/library'. If you want to get rid of the warning supply the 'lib' argument. Gabor On Sat, Sep 08, 2007 at 11:26:44AM +0100,

Re: [R] R survey package again

2007-09-08 Thread James Reilly
On 7/9/07 11:42 PM, eugen pircalabelu wrote: I have a sample from a survey where household were interviewed. The sample has 4 criteria on which the stratification was based: REGION, SIZE OF HOUSEHOLD, SIZE OF LOCALITY, AGE OF HEAD OF HOUSEHOLD. Since i don't have the whole information in

Re: [R] Matlab's lsqnonlin

2007-09-08 Thread Katharine Mullen
I'm wondering about experiences: Do you know of cases where minpack.lm's nls.lm() solved a (real) problem that nls() would have a problem with ? In short, no. However, I looked at this question in the limited context of fitting the parameters of a linear superposition of 2 exponentials

Re: [R] Help with color coded bar graph

2007-09-08 Thread Jim Lemon
Luis Naver wrote: I have a list of observations that are -1, 1 or 0. I would like to represent them in a horizontal bar color coded based on value like a stacked bar graph. I can achieve this in the form of a png with the following code: A = floor(runif(10)*3) - 1 png(width=100,

Re: [R] argument 'lib' is missing: using '/usr/lib/R/library'

2007-09-08 Thread Paul Smith
On 9/8/07, Gabor Csardi [EMAIL PROTECTED] wrote: Paul, what is the question? If the question is why you get this warning message, the reason is that the 'lib' argument is missing and install.packages is using '/usr/lib/R/library'. If you want to get rid of the warning supply the 'lib'

Re: [R] genoud problem

2007-09-08 Thread Jasjeet Singh Sekhon
Hi Shubha, genoud does not return the initial fit value. But you could easily obtain it by passing your starting values to your function directly. Alternatively, one can have genoud print out the entire initial population (or the entire population as is evolves), and one can then decide to

Re: [R] Running a PERL script from R

2007-09-08 Thread Paul Hiemstra
Dear Ken. You could also try and use RSPerl (http://www.omegahat.org/RSPerl/). It allows one to use R commands in Perl and vice-versa. regards, Paul Pierce, Ken schreef: Is there a way to run a simple perl script from R? Kenneth B. Pierce Jr. Research Ecologist Landscape Ecology,

Re: [R] Lisp-like primitives in R

2007-09-08 Thread Gabor Grothendieck
On 9/8/07, Peter Dalgaard [EMAIL PROTECTED] wrote: François Pinard wrote: [Roland Rau] [François Pinard] I wonder what happened, for R to hide the underlying Scheme so fully, at least at the level of the surface language (despite there are hints). To further foster

Re: [R] Running a PERL script from R

2007-09-08 Thread Dirk Eddelbuettel
On 7 September 2007 at 14:04, Pierce, Ken wrote: | I've tried various configurations of .script, system and shell to no | avail. It seems to pause and run something but then no output is | created. Make sure you read the help page for system, and understand the options. Esp on Windows, you will

Re: [R] confusion matrix - better code?

2007-09-08 Thread Monica Pisica
Michael, Thank you very much. My code is certainly put to shame by yours. I promise to read about factor to see how you use it and why ;-)) I really appreciate your help. Monica Subject: RE: [R] confusion matrix - better code? Date: Fri, 7 Sep 2007 15:36:00 -0500 From: [EMAIL PROTECTED]

Re: [R] Lisp-like primitives in R

2007-09-08 Thread François Pinard
[Peter Dalgaard] [François Pinard] I meant that R might have implemented a Scheme engine [...] with a surface language [...] which is purposely not Scheme, but could have been. [...] one could dare dreaming that the Scheme engine in R be completed, and Scheme offered as an alternate extension

Re: [R] R first.id last.id function error

2007-09-08 Thread Gerard Smits
Hi Jim, Thanks for going to the trouble of writing the function. I'll copy and try it. Gerard At 06:30 PM 9/7/2007, jim holtman wrote: This function should do it for you: file1 - read.table(textConnection( id rx week dv1 + 1 1 11 1 + 2 1 12 1 + 3 1 13 2 + 4

[R] Suppress 'x' when appending to a csv file

2007-09-08 Thread John Kane
Is there any convenient way to supress the x that appears in csv export files? I would like to be able to export a file and add a comment to it yet still be able to read it back into R. I don't see any way to get rid of the x that seperates the different appended parts. Thanks EXAMPLE x 1 2 3

Re: [R] Suppress 'x' when appending to a csv file

2007-09-08 Thread Marc Schwartz
On Sat, 2007-09-08 at 11:41 -0400, John Kane wrote: Is there any convenient way to supress the x that appears in csv export files? I would like to be able to export a file and add a comment to it yet still be able to read it back into R. I don't see any way to get rid of the x that

Re: [R] Using clustering functions

2007-09-08 Thread Uwe Ligges
uv wrote: Hi. I need to use a few different clustering functions. I managed to run the kmeans() one which is in my stats library, but I can't use any function, such as agnes(), that is in my cluster library. Any idea how to access other libraries? Thanks! Both stats and cluster are

Re: [R] Problem in installing packages on linux machine...

2007-09-08 Thread tkobayas
Hi, I am trying to install RSQLite package on my Fedora workstation. I tried to install other packages as well, but each time I got the same error messages saying compilation error and non zero exit status. Do I have to specify lib=? I never specified the library path before when I was using

Re: [R] Problem in installing packages on linux machine...

2007-09-08 Thread Henrique Dallazuanna
Hi, try install packages whit 'sudo'. $sudo R -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40 S 49° 16' 22 O On 08/09/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am trying to install RSQLite package on my Fedora workstation. I tried to install other packages as well,

Re: [R] Problem in installing packages on linux machine...

2007-09-08 Thread tkobayas
Hi, Still got the same error message. I did su R when I got the error message for the first time. I have never seen this error message. I will be googling for solutions as well... Thank you. Quoting Henrique Dallazuanna [EMAIL PROTECTED]: Hi, try install packages whit 'sudo'. $sudo R

Re: [R] Suppress 'x' when appending to a csv file

2007-09-08 Thread John Kane
Thanks Marc. It works. I had not thought of using col.names = FALSE as I wanted to keep the colnames. I see that I will just have to do another write.table command to do this. Humm, actually it took a a bit of juggling to do the names but it's looking fine now. --- Marc Schwartz [EMAIL

[R] statistical tests under serial dependence

2007-09-08 Thread Rosa Trancoso
Hello! I would like to know if there are already programmed statistical tests for data under serial dependence, for example, considering the variance inflation factor? Thank you very much Best regards Rosa __ R-help@stat.math.ethz.ch mailing list

[R] predict.arima

2007-09-08 Thread shao ran
Hi *, Firstly, thank you so much for your time to read my email. I am currently interested in how to use R to predict time series from models fitted by ARIMA. The package I used is basic stats package, and the method I used is predict.Arima. What I know is that ARIMA parameters are estimated

Re: [R] 'initial value not feasible' in constrOptim

2007-09-08 Thread Ingmar Visser
Hi, On Sep 7, 2007, at 11:00 PM, Yuchen Luo wrote: constrOptim(c(0.5,0.3,0.5), fit.error, fit.error.grr, ui=-1*ui,ci=-1*ci) and I am confronted with error message initial value not feasible I plug in the initial value of (0.5,0.3,0.5) to function fit.error and fit.error.grr and have

[R] writing complex outputs to table

2007-09-08 Thread Steve Powers
So I've come across a few cases where complex outputs from functions will not write to tables. The most recent case involves the TukeyHSD function in the stats package. If I save the TukeyHSD call and print it, that obviously goes fine, but when I try writing to a table, I get an error message