[R] (sans objet)

2007-04-04 Thread croero
Hello, Is there any function argmax in R ? For example, if I have the vector x=c(1,4,15,7,6), max(x)=15. But I need a function f such that f(x)=3, 3 being the number where 15 is. Thank you very much. _ ues clics pour

Re: [R] (sans objet)

2007-04-04 Thread Douglas Bates
On 4/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Is there any function argmax in R ? For example, if I have the vector x=c(1,4,15,7,6), max(x)=15. But I need a function f such that f(x)=3, 3 being the number where 15 is. which.max __

[R] (sans objet)

2006-05-08 Thread miniar mansouri
thank you Martin , but the problem now is that when I run R CMD INSTALL -c SJava.tar .gz I have the message perl n'est pas reconnue en tant que command interne ou externe [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch

Re: [R] (sans objet)

2006-05-08 Thread Uwe Ligges
miniar mansouri wrote: thank you Martin , but the problem now is that when I run R CMD INSTALL -c SJava.tar .gz I have the message perl n'est pas reconnue en tant que command interne ou externe [[alternative HTML version deleted]] So what about installing perl on your machine - or

[R] (sans objet)

2006-05-08 Thread miniar mansouri
When I run the code : R CMD INSTALL -c SJava_0.69-0.tar.gz i have: gzip:stdin:invalid compressed data--crc error tar:child returned status 1 cannot untar the package what i do? [[alternative HTML version deleted]] __

Re: [R] (sans objet)

2006-05-08 Thread Martin Morgan
I guess that you are on Windows, and that you need to install the tools required to build R packages. The instructions for doing this are at http://www.r-project.org/ and then visiting the Manuals and 'R Installation and Administration links. See especially section 3 and appendix F. This can be

[R] (sans objet)

2006-01-08 Thread PONSERO Alain
Dear R People: in the function loess, how can one add the weight of the points which is contained in the variable nbtotal Data : Nbtotal P_alim H_eau xyplot(P_alim ~ H_eau, auto.key = list(points = T, lines = F),data = data, type = c(p, smooth), span=.2, scales =

Re: [R] (sans objet)

2005-06-27 Thread Michael Dewey
At 11:12 26/06/05, pir2.jv wrote: Ma première question: puis-je écrire en français, mon anglais est pire que pire. J'essaie en français; sinon, j'essaierai une traduction! Je sduis débutant. Ma question est donc simple, j'imagine. I think ?merge is your friend here. Je travaille sur des

[R] (sans objet)

2005-06-26 Thread pir2.jv
Ma première question: puis-je écrire en français, mon anglais est pire que pire. J'essaie en français; sinon, j'essaierai une traduction! Je sduis débutant. Ma question est donc simple, j'imagine. Je travaille sur des tableaux de statistiques. Je prends un exemple: J'ai un frame que j'appelle

Re: [R] (sans objet)

2005-06-26 Thread Spencer Graves
Have you studied An Introduction to R [available via help.start()]? Note especially the sections on Factors, Arrays and matrices, and Lists and data frames. There are also a couple of French-language introductions to R available via www.r-project.org - Documentation: Manuals -

[R] (sans objet)

2005-04-25 Thread Martin Julien
Hi I’m working in behavioural ecology I’m interesting in doing a multi-factorial MANOVA with a random effect as of independent variable. Do you know if it’s possible to do that and how I can do it? Thanks Julien Julien Martin Laboratoire de Denis Réale Chaire de Recherche du Canada en

[R] (sans objet)

2004-12-14 Thread francoisromain
Hello, Just look at the examples in ?persp. There is a function called trans3d defined in it that will traduce your 3D coordinates to 2D, and so you will be able to draw lines with lines function. Romain. Corey Bradshaw a écrit : I've created a perspective plot using 'persp' in the graphics

[R] (sans objet)

2004-06-15 Thread Benjamin Esterni
Dear users I have a problem with the dr function: dimension reduction. I give you my example, and i'll be pleased to read your comments. #let be X a matrix 50*100: library(dr); X- matrix(rnorm(50*100,5,1),50,100); #and let be Y a vector response: Y- sample(0:1,50,replace=T); #I choose (for

Re: [R] (sans objet)

2004-06-15 Thread Prof Brian Ripley
On Tue, 15 Jun 2004, Benjamin Esterni wrote: I have a problem with the dr function: dimension reduction. It seems that you are using it inappropriately. I give you my example, and i'll be pleased to read your comments. #let be X a matrix 50*100: library(dr); You should not be