RE: [R] manipulating "..." inside a function

2003-03-21 Thread Liaw, Andy
Thanks to those who responded. I finally got by with some pretty ugly hack (ceorcing ... to list, delete the unwanted part, add other arguments, and use do.call). Cheers, Andy > -Original Message- > From: Ben Bolker [mailto:[EMAIL PROTECTED] > Sent: Friday, March 21, 2003 3:59 PM > To: L

Re: [R] manipulating "..." inside a function

2003-03-21 Thread Ben Bolker
I have a couple of slightly ugly functions to do this in my bbmisc package: clean.args <- function(argstr,fn,extrabad=NULL,dots.ok=TRUE) { fnargs <- names(formals(fn)) if (length(argstr)>0 && !("..." %in% fnargs && dots.ok)) { badargs <- !sapply(names(argstr),"%in%",c(fnargs,""))

RE: [R] manipulating "..." inside a function

2003-03-21 Thread Wiener, Matthew
As Brian Ripley pointed out in a recent post, you can just give g() its own "..." argument. Regards, Matt Wiener -Original Message- From: Liaw, Andy [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 3:37 PM To: '[EMAIL PROTECTED]' Subject: [R] manipulating "..." inside a function

[R] manipulating "..." inside a function

2003-03-21 Thread Liaw, Andy
Dear R-help, Can some one tell me how to do the following (if it's possible)? Suppose I have a function like this: f <- function(x, y, ...) { ## some code g(x, y, ...) ## some more code } The problem is that g() may not understand everything that comes through in "...". Is there a w

[R] Re:problem with read.table

2003-03-21 Thread sabrina servanty
You were right!Thank a lot, I think that I'm really dumm!I've lost 3 hours trying to solve the problem!!Regards,Sabrina Servanty__Gagne une PS2 ! Envoie un SMS avec le code PS au 61166(0,35 Euro Hors coût du SMS) _

Re: [R] Problem with read.table

2003-03-21 Thread Spencer Graves
Have you tried "count.fields" to confirm that R thinks all records have the same number of fields? Spencer Graves sabrina servanty wrote: Dear all, I was used to work on R1.6 and I have now passed on R1.6.2 but I can't read my file (and that is a big problem!!). I made a data sheet with some s

Re: [R] Problem with read.table

2003-03-21 Thread Jerome Asselin
How about replacing "/t" by "\t" ? Jerome __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

RE: [R] Problem with read.table

2003-03-21 Thread Marc Schwartz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sabrina servanty Sent: Friday, March 21, 2003 1:22 PM To: [EMAIL PROTECTED] Subject: [R] Problem with read.table Dear all, I was used to work on R1.6 and I have now passed on R1.6.2 but I can't read my fi

Re: [R] Problem with read.table

2003-03-21 Thread Ben Bolker
Should that be sep="\t" ? On Fri, 21 Mar 2003, sabrina servanty wrote: > Dear all, > > I was used to work on R1.6 and I have now passed on R1.6.2 but I can't read my > file (and that is a big problem!!). > I made a data sheet with some > spreadsheet in Excell, and save it as separeted by tab

[R]

2003-03-21 Thread Wagner Silva
-- = Wagner Silva [EMAIL PROTECTED] Bacharel em Ciência da Computação Universidade Federal de Lavras __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] rsync

2003-03-21 Thread Erich Neuwirth
Seth Falcon wrote: I am now downloading r-devel to compile it on windows XP. The CRAN source code page says "you will prefere to use rsync". I am googling around, and cannot find anything about rsync on windows. You can use rsync on Windows via the Cygwin toolset (see www.cygwin.com).

[R] Problem with read.table

2003-03-21 Thread sabrina servanty
Dear all, I was used to work on R1.6 and I have now passed on R1.6.2 but I can't read my file (and that is a big problem!!).I made a data sheet with some spreadsheet in Excell, and save it as separeted by tab .txt.I write in Rread.table ("file.txt",h=T,sep="/t",dec=",")But R consider that I have on

RE: [R] Install R on unix

2003-03-21 Thread Huntsinger, Reid
It looks like the Makefiles "make" is looking at aren't the ones configure created. I did the install on solaris 2.6 with no problem just now. The line about "Stata 6 installation" is certainly suspicious... maybe some makefiles got overwritten somehow? Can you start clean and try again? Reid Hun

Re: [R] trellis plot

2003-03-21 Thread Jerome Asselin
Hi Latif, You need to build your own panel function that will fit your purpose. This will do what you want, but it's not very elegant. A better solution would have the panel function depend on the value of z. Any other suggestions on own to do this? Jerome library(lattice) x <- c(rep(LETTERS

Re: [R] question

2003-03-21 Thread Roger Peng
Try using the `pixmap' package from CRAN. -roger ___ UCLA Department of Statistics [EMAIL PROTECTED] http://www.stat.ucla.edu/~rpeng On Fri, 21 Mar 2003, vincent deschodt wrote: > How can i open a bmp image and transform it in a matrix of pixels? > how can i save it

Re: [R] rsync

2003-03-21 Thread Seth Falcon
> I am now downloading r-devel to compile it on windows XP. The CRAN > source code page says "you will prefere to use rsync". I am googling > around, and cannot find anything about rsync on windows. You can use rsync on Windows via the Cygwin toolset (see www.cygwin.com). I've also seen an rs

Re: [R] rsync

2003-03-21 Thread Ko-Kang Kevin Wang
Hi, Perhaps have a look at http://optics.ph.unimelb.edu.au/help/rsync/rsync_pc1.html "Installing rsync on a Windows machine"? FYI, I did a google search on "Using rsync on Windows" and found it. On Fri, 21 Mar 2003, kjetil brinchmann halvorsen wrote: > Date: Fri, 21 Mar 2003 13:35:20 -0400 >

RE: [R] Savitzky-Golay Derivative and Smoothing

2003-03-21 Thread Liaw, Andy
If I'm not mistaken, that's sort of local polynomial with even degree and fixed bandwidth (based on my own interpretation of description in Numerical Recipes). You can do that with functions in the KernSmooth package. HTH, Andy > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAI

[R] Savitzky-Golay Derivative and Smoothing

2003-03-21 Thread wolf
Hello, Is there any libary with the algorithms of the Savitzky-Golay Derivative and Smoothing. I found the calculation on the web site "www.galactic.com/algorithms/" but I'm to new in R so I cant programm it in R. Can someone help me? Thanx Andreas micro-biolytics GmbH Andreas Wolf Georges-Köhl

[R] rsync

2003-03-21 Thread kjetil brinchmann halvorsen
Hola! I am now downloading r-devel to compile it on windows XP. The CRAN source code page says "you will prefere to use rsync". I am googling around, and cannot find anything about rsync on windows. Anybody has any experience with rsync on windows? Kjetil _

[R] Trying to make a nested lme analysis

2003-03-21 Thread Ronaldo Reis Jr.
Hi, I'm trying to understand the lme output and procedure. I'm using the Crawley's book. I'm try to analyse the rats example take from Sokal and Rohlf (1995). I make a nested analysis using aov following the book. > summary(rats) Glycogen Treatment Rat Liver Min. :12

[R] ArrayAnalyzer and Bioconductor

2003-03-21 Thread Robert Gentleman
Today, Insightful Corporation (www.insightful.com) is announcing the availability of S+ArrayAnalyzer, a new, integrated module for S-PLUS based on collaboration with the BioConductor Project (www.bioconductor.org) - an open source and open development software project for the analysis and comprehen

RE: [R] barplot legend size

2003-03-21 Thread Marc Schwartz
>-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Ott Toomet >Sent: Friday, March 21, 2003 8:44 AM >To: [EMAIL PROTECTED] >Subject: [R] barplot legend size > > >Dear R-people, > >are there any way to change the size of legend in barplot? I >have tried v

[R] barplot legend size

2003-03-21 Thread Ott Toomet
Dear R-people, are there any way to change the size of legend in barplot? I have tried various versions of cex, both as par(cex.*= ) and barplot(..., cex.*= ). So long without success. Sincerely, Ott > version _ platform i686-pc-linux-gnu arch i686 os

Re: [R] Plot multi series on one plot

2003-03-21 Thread Michael A. Miller
> "mhoward" == mhoward <[EMAIL PROTECTED]> writes: > R help, How can I plot the below data table by Data ~ Site > and group by Grinder and Equip Id so I get a chart like > this Excel version? I have tried coplot with little success > and lattice makes a pretty good chart like

[R] Redundancy in Variables (and canonical correlation)

2003-03-21 Thread Barker, Chris
Base on the earlier question: there is a "redundancy" measure for Canonical Correlation "Canonical Correlation Redundancy Analysis". You may be able to adapt it to your situation. See the paper by Stewart David W., Love W. (1968), A General Canonical Correlation Index, Psychological Bulletin

[R] trellis plot

2003-03-21 Thread Mahbub Latif
Hi there, I need some help about trellis plot. I have the following plot. x <- c(rep(LETTERS[1:4],13), rep(LETTERS[4:1],12)) y <- rnorm(100)z <- rep(1:2,50)bwplot(y~factor(x)|z,layout=c(2,1),  panel=function(x,y) panel.bwplot(x,y,horizontal=F))  Now I want to place "*" on the positions (1,-1.5) in

Re: [R] Integer manipulation

2003-03-21 Thread Thomas Lumley
On Fri, 21 Mar 2003, Wayne Jones wrote: > Hi there, > > When I enter a particularly long number into R it rounds it down into > scientific notation. > For example, > > > 251002679 > > [1] 2.51e+12 > > How can I preserve the precision of the original number? It has been preserved: > a<-251

[R] Integer manipulation

2003-03-21 Thread Wayne Jones
Hi there, When I enter a particularly long number into R it rounds it down into scientific notation. For example, > 251002679 [1] 2.51e+12 How can I preserve the precision of the original number? Regards, Wayne Dr Wayne R. Jones Statistician / Research Analyst KSS Group plc St James

[R] question

2003-03-21 Thread vincent deschodt
How can i open a bmp image and transform it in a matrix of pixels? how can i save it after transform on matrix? (Sorry for my english i don't speak it very well) [[alternate HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://www.s

[R] Postscript PB

2003-03-21 Thread Poizot Emmanuel
Hi, I use R 1.6.2 under Mandrake9.0. I've got a problem with the postscript files I try to creat. When I look to the file with ghostview it's ok. When I want to print it, I've got a blank page or a black page (fill of black encre) I changed the printer (guessing it was my driver printer), it was t

[R] Postscript PBs

2003-03-21 Thread Poizot Emmanuel
Hi, I use R 1.6.2 under Mandrake9.0. I've got a problem with the postscript files I try to creat. When I look to the file with ghostview it's ok. When I want to print it, I've got a blank page or a black page (fill of black encre) I changed the printer (guessing it was my driver printer), it was t

[R] CCA (Curvilinear Component Analysis)

2003-03-21 Thread Anne-Laure Boulesteix
Hi, Does anyone know if Curvilinear Component Analysis (CCA) or Curvilinear Distance Analysis (CDA) has already been implemented in R ? I couldn't find it. Many thanks Anne-Laure __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/

[R] Re: [BioC] mva functions

2003-03-21 Thread alessandro . semeria
Probably you have to set a new max value for the max amount of the "heap" memory, look at the R-help on 'memory.limit' function. Good luck A.S. Alessandro Semeria Models and Simulations Laboratory The Environment Research Center - Montecatini (Edison Group), Via