Re: [R] printing POSIXct values in table labels

2003-03-06 Thread ripley
table() turns its argument into a factor, as it is documented to work on factors, only, and factor(x$date) [1] 1034809200 1034809200 1034809200 1034809200 944611200 944611200 Levels: 944611200 1034809200 That's because unique.default does not know about POSIXct objects (nor indeed many

[R] Correlation test

2003-03-06 Thread Poizot Emmanuel
Hi, I need to test multiple correlation coefficient in a same time, what's the best test for that and are should I do under R ? Thanks -- Cordialement Emmanuel POIZOT Cnam/Intechmer Digue de Collignon 50110 Tourlaville Tél : (33)(0)2 33 88 73 42 Fax :

Re: [stuart.leask@nottingham.ac.uk: [R] R in your pocket on a SharpZaurus]

2003-03-06 Thread david . whiting
Ah, but the interesting thing is that they are coming out with a 'clam' version like the 5MX. Details are limited at the moment, but that could mean the combination of 5MX usability with a supported linux distro. I am drooling in anticipation. Sounds like a I've finally finished my PhD and

[R] anova subhypotheses

2003-03-06 Thread rob foxall (IFR)
Hello all, A really noddy question for you all: I'm trying without success to do some subhypothesis testing. Using simple anova model, with a toy dataset from a book. I have four factors A,B,C,D, and wish to test mu_C = mu_D. This is what I have tried:

Re: [R] anova subhypotheses

2003-03-06 Thread Peter Dalgaard BSA
rob foxall (IFR) [EMAIL PROTECTED] writes: Hello all, A really noddy question for you all: I'm trying without success to do some subhypothesis testing. Using simple anova model, with a toy dataset from a book. I have four factors A,B,C,D, and wish to test mu_C = mu_D. This is

Re: [stuart.leask@nottingham.ac.uk: [R] R in your pocket on a SharpZaurus]

2003-03-06 Thread david . whiting
Oops, sorry folks, I didn't mean to send any of these emails to the R list, I thought I was having a private discussion...I'm going to have to see what I did wrong. Dave iOn Thu, Mar 06, 2003 at 11:35:35AM +0100, Peter Dalgaard BSA wrote: [EMAIL PROTECTED] writes: Ah, but the

Re: [R] anova subhypotheses

2003-03-06 Thread kjetil brinchmann halvorsen
On 6 Mar 2003 at 10:38, rob foxall (IFR) wrote: You can use linear.hypothesis() from the package car (on CRAN). Kjetil Halvorsen Hello all, A really noddy question for you all: I'm trying without success to do some subhypothesis testing. Using simple anova model, with a toy

Re: [R] Timezones

2003-03-06 Thread ripley
zdump manipulates its environment directly but is otherwise the same code. Solaris and glibc define putenv slightly differently. There are two lines like char buff[20]; in src/main/datetime.c, and if you change those to static char buff[200]; it should work (increasing the

Re: [R] Timezones

2003-03-06 Thread Adrian Trapletti
[EMAIL PROTECTED] wrote: zdump manipulates its environment directly but is otherwise the same code. Solaris and glibc define putenv slightly differently. There are two lines like char buff[20]; in src/main/datetime.c, and if you change those to static char buff[200];

[R] Problems with variable types.

2003-03-06 Thread Ronaldo Reis Jr.
Hi all, I have problems in a dataframe variables types. Look: from a loop function: for(...){ ... dados.fin - rbind(dados.fin, c(L=j, A=j^2, Nsp=nsps, N=length(amosfin$SP), AmT=am,NAm=nam,

[R] least absolute deviation regression

2003-03-06 Thread Christoph Lehmann
is there any package or method which enables to compute a linear regression with the leas absolute value fit-criterion? thanks christoph -- Christoph LehmannPhone: ++41 31 930 93 83 Department of Psychiatric NeurophysiologyMobile: ++41 76 570 28 00 University

Re: [R] least absolute deviation regression

2003-03-06 Thread Peter Dalgaard BSA
Christoph Lehmann [EMAIL PROTECTED] writes: is there any package or method which enables to compute a linear regression with the leas absolute value fit-criterion? Try rq() from the quantreg package. -- O__ Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of

Re: [R] tkoptionmenu

2003-03-06 Thread Spencer Graves
Regarding 1, both cat(x) and print(x) have worked for me, depending on the class of x. To get extra labeling, sometimes I have used print(list(x=x)) and variants on that. Hope this helps. Spencer Graves janet rosenbaum wrote: I have two questions: one so easy that I apologise for it in

[R] post mail

2003-03-06 Thread solares
Hello, i want post my mail in r-announce. [EMAIL PROTECTED] thanks __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] tkexit

2003-03-06 Thread John Zhang
Would tkdestroy() work for you? Date: Thu, 6 Mar 2003 11:33:05 -0300 (ART) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Virus-Scanned: by amavisd-milter (http://amavis.org/)

Re: [R] tkoptionmenu

2003-03-06 Thread Peter Dalgaard BSA
janet rosenbaum [EMAIL PROTECTED] writes: 2. I also have a tcltk in R question. How do you use the command tkoptionmenu in R? The following are both valid syntax and both create the desired menu, but neither changes the variable fsep. septype.menu - tkoptionmenu(septype,fsep,

Re: [R] question about model formula

2003-03-06 Thread Peter Dalgaard BSA
[EMAIL PROTECTED] (Michael A. Miller) writes: Dear R Gang, I'm interested in using R and the nls package for fitting kinetic models. I'm having some difficulty getting a model specified for nls though. The math for the model that I want to fit is dg(t)/dt = K1 f(t) - k2 g(t)

[R] Error in terms.default()

2003-03-06 Thread Daniel A. Powers
R-list -- I am working with some SPlus code and get the following error Error in terms.default(formula, data = data) : no terms component Can someone point me to a fix? The pasted formula looks ok when printed during the procedure. Thanks, Dan

Re: [R] Followup: copy-paste graphics from R to Word on Mac OS X

2003-03-06 Thread Martin Renner
I had the same problem and came to this solution: - use pdf() to create a pdf file - open PDF in Freehand, during open replace fonts: ZapfDingsbat for Zapf Dingsbat - save as PDF or EPS and import this into word - bingo The pdf files created by pdf() seem less than perfect - on my system

Re: [R] Error in terms.default()

2003-03-06 Thread ripley
R and S-PLUS handle terms very differently. If this were a formula, terms would dispatch to term.formula, so presumably it is not. Do you need an as.formula() call? On Thu, 6 Mar 2003, Daniel A. Powers wrote: I am working with some SPlus code and get the following error Error in

Re: [R] Error in terms.default()

2003-03-06 Thread Ross Ihaka
Daniel A. Powers wrote: R-list -- I am working with some SPlus code and get the following error Error in terms.default(formula, data = data) : no terms component Can someone point me to a fix? The pasted formula looks ok when printed during the procedure. Without a more detailed

Re: [R] question about model formula

2003-03-06 Thread Setzer . Woodrow
I did not know about stepsize being an issue. I had thought that problems with convergence in this case were due to bad approximations of the finite difference gradient. I guessed that around the optimum, numerical errors would come to dominate the gradient calculations, causing convergence to

Re: [R] Use Rterm in rxvt for Cygwin?

2003-03-06 Thread Michael Na Li
On Mon, 3 Mar 2003, [EMAIL PROTECTED] outgrape: Rterm is a Windows application. It works fine in Windows tcsh and in Cygwin bash on Windows XP (and last time I looked, Windows 98 too). Rterm doesn't work (interactively) in Cygwin bash on our machine (Windows 2000 SP 3, R 1.6.1). (Not that

Re: [R] Followup: copy-paste graphics from R to Word on Mac OS X

2003-03-06 Thread ripley
This is misinformation: the font name in the PDF specifications is ZapfDingbats, and that is what the R driver uses, as in /Type /Font /Subtype /Type1 /Name /F6 /BaseFont /ZapfDingbats I hope you have sent a suitable bug report to the supplier of your tools.x On Thu, 6 Mar 2003, Martin Renner

Re: [R] Use Rterm in rxvt for Cygwin?

2003-03-06 Thread Dirk Eddelbuettel
On Thu, Mar 06, 2003 at 11:53:54AM -0800, Michael Na Li wrote: On Mon, 3 Mar 2003, [EMAIL PROTECTED] outgrape: Rterm is a Windows application. It works fine in Windows tcsh and in Cygwin bash on Windows XP (and last time I looked, Windows 98 too). Rterm doesn't work (interactively)

[R] Proper way to document print( ) functions

2003-03-06 Thread Frank E Harrell Jr
Frequently we have a print method, say print.myclass, that has a variety of arguments. If in the .Rd file I say \usage{ \method{print}{myclass}(x, myarg) } I get a warning when running R CMD chk: * checking generic/method consistency ... WARNING print: function(x, ...) print.myclass:

Re: [R] Resizing R console window (was BSOD with ESS[R]...)

2003-03-06 Thread Cliff Lunneborg
Simon Gatehouse writes: Like many, I fiddle while thinking. Part of my fiddling has been to rapidly resize the R console window back and forth by dragging with the mouse on the bottom right hand corner. I resize the window by a small amount rapidly and continually . After about 5 seconds of

Re: [R] Use Rterm in rxvt for Cygwin?

2003-03-06 Thread ripley
On Thu, 6 Mar 2003, Dirk Eddelbuettel wrote: On Thu, Mar 06, 2003 at 11:53:54AM -0800, Michael Na Li wrote: On Mon, 3 Mar 2003, [EMAIL PROTECTED] outgrape: Rterm is a Windows application. It works fine in Windows tcsh and in Cygwin bash on Windows XP (and last time I looked,

Re: [R] Proper way to document print( ) functions

2003-03-06 Thread ripley
The simplest way is to define the method correctly, as print.myclass(x, myarg, ...). That message is about the code, not the documentation, but you will get a different one if the code and documentation disagree. All print methods must include `...', and there is a section in `Writing R

[R] Initial release of RSessionDA

2003-03-06 Thread Warnes, Gregory R
Announcing the initial release of RSessionDA. RSessionDA provides objects for interacting with R from Zope www.zope.org, a full-featured web application development system. These objects permit evaluation of functions in the R language using information in Zope. R data objects, graphics

[R] multiple plots and postscript()

2003-03-06 Thread Robin Hankin
Kia Ora everybody. There must be an obvious answer to this, but I can't see it I want four square plots in one postscript file. The canonical answer would be: postscript(file=~/f.ps,width=5,height=5) par(pty=s,mfrow=c(2,2)) plot(1:19,xlab=) plot(1:19,xlab=) plot(1:19,xlab=)

Re: [R] multiple plots and postscript()

2003-03-06 Thread ripley
On Fri, 7 Mar 2003, Robin Hankin wrote: Kia Ora everybody. There must be an obvious answer to this, but I can't see it I want four square plots in one postscript file. The canonical answer would be: postscript(file=~/f.ps,width=5,height=5) par(pty=s,mfrow=c(2,2))

Re: [R] Followup: copy-paste graphics from R to Word on Mac OS X

2003-03-06 Thread Seth Falcon
I've encountered some of the same issues with jaggy graphics. Here is what I have found to work pretty well: Short and sweet: Use the bitmap() function with res=200 to create png files. Some explaination: As far as I can tell, png(), jpg(), and friends do not allow you to set the resolution.

[R] type III Sum Sq in ANOVA table - Howto?

2003-03-06 Thread Josef Frank
Hello, as far as I see, R reports type I sums of squares. I'd like to get R to print out type III sums of squares. e.g. I have the following model: vardep~factor1*factor2 to get the type III sum of squares for factor1 I've tried

[R] compiling R on sparc-solaris

2003-03-06 Thread Kerr, Richard
Hello, I am trying to compile the R package on a sun. I get the error message rbitmap.c: In function 'my_png_error': rbitmap.c:73: structure has no member named 'jmpbuf' rbitmap.c: In function 'R_SaveAsPng': rbitmap.c:122: structure has no member named 'jmpbuf' make[4]:*** [rbitmap.lo] Error 1

RE: [R] type III Sum Sq in ANOVA table - Howto?

2003-03-06 Thread Liaw, Andy
The short answer: use drop1(). The long(er) answer: think harder about what question(s) you want answered (i.e., what hypotheses you really want to test, and test only those). The model hierarchy says that a model should not have an interaction term involving a factor whose main effect is not

RE: [R] type III Sum Sq in ANOVA table - Howto?

2003-03-06 Thread Rolf Turner
Andy Liaw wrote: The long(er) answer: think harder about what question(s) you want answered (i.e., what hypotheses you really want to test, and test only those). The model hierarchy says that a model should not have an interaction term involving a factor whose main effect is not present

[R] column name changes based on substrings

2003-03-06 Thread Jeremy Z Butler
Hi peoples, I'm trying to work out a function which will allow me to relace column names on the basis of substrings within the existing names. e.g. I'd like: blah.Na blah2.Na blah3.Mg blah4.Mg blah5.K blah6.K R1 x x x xxx R2 x

RE: [R] type III Sum Sq in ANOVA table - Howto?

2003-03-06 Thread Liaw, Andy
From: Rolf Turner [mailto:[EMAIL PROTECTED] Andy Liaw wrote: The long(er) answer: think harder about what question(s) you want answered (i.e., what hypotheses you really want to test, and test only those). The model hierarchy says that a model should not have an interaction

Re: [R] type III Sum Sq in ANOVA table - Howto?

2003-03-06 Thread John Fox
Dear Thomas et al., At 05:33 PM 3/6/2003 -0800, Thomas Lumley wrote: On Fri, 7 Mar 2003, Josef Frank wrote: Hello, as far as I see, R reports type I sums of squares. I'd like to get R to print out type III sums of squares. e.g. I have the following model: vardep~factor1*factor2 to get

[R]

2003-03-06 Thread Skanda Kallur; MEngg
Hello, I am trying to use 'R' for K-means simulatio, could you please advise me how I can read my data into a two dimesional array? Or is there any method which directly reads the excell file? Please let me know asap. Regards Skanda Kallur Cogito, Ergo Sum! Rene Descartes

Re: [R]

2003-03-06 Thread Andrew C. Ward
A common approach for getting data into R from Excel is to save the spreadsheet as a CSV file and then read it into R using read.csv. CRAN contains references to other means of directly linking Excel and R. You may find the CSV approach good enough. Regards, Andrew C. Ward CAPE Centre