[R] How to make - generic?

2003-07-26 Thread Thomas Koenig
Hi, perhaps a little bit unusual: is it possible to use - as generic function with a new signature? The following example doesn't work: isGeneric(-) [1] FALSE setClass(A,representation(x = numeric)) [1] A setClass(B,representation(x = numeric)) [1] B myAssign.A - function(x,value) + {

[R] bug plotting dates?

2003-07-26 Thread Philipp Pagel
Hello R-experts! I am using R Version 1.7.1 (2003-06-16) on a Debian Linux box and I have discovered an odd result when plotting data involving dates. Please try this minimal example: a = seq(ISOdate(2000,1,1), ISOdate(2001,1,1), months) b = 1:13 plot(a,b, col=red) What I get is a

Re: [R] How to make - generic?

2003-07-26 Thread Prof Brian Ripley
What are you trying to do with this? Assignment (-) is not a function, and the language grammar does not convert a - b into -(a, b) (as it would with the binary operator functions). You could call it that way, and then it will probably work. On Sat, 26 Jul 2003, Thomas Koenig wrote: Hi,

RE: [R] R won't connect to the internet on SUSE Linux 8.1

2003-07-26 Thread michael watson (IAH-C)
:-)) Installing Bioconductor was how it all began, so I ended up doing what you suggested (in fact I downloaded just the packages I needed as in the full tar ball, rhdf5 wouldn't compile, probably as I don't have the right hdf5 installed but thats not a problem). BUT it just bugged me that I

Re: [R] How to make - generic?

2003-07-26 Thread Peter Dalgaard BSA
Peter Dalgaard BSA [EMAIL PROTECTED] writes: Prof Brian Ripley [EMAIL PROTECTED] writes: What are you trying to do with this? Assignment (-) is not a function, and the language grammar does not convert a - b into -(a, b) (as it would with the binary operator functions). You could call

Re: [R] R benchmark, moble Pentium III, 1.13 GHs

2003-07-26 Thread Philippe Grosjean
Hi Jason, I suppose you installed the Matrix library, and it is working on your computer? If yes, may be det.Matrix() was removed, or renamed in the Matrix library you have (I cannot check this for the latest version, because I am away of the office until August 1st), but I will do that next

Re: [R] How to make - generic?

2003-07-26 Thread Thomas Koenig
Am Samstag, 26. Juli 2003 11:38 schrieb Peter Dalgaard BSA: Peter Dalgaard BSA [EMAIL PROTECTED] writes: Prof Brian Ripley [EMAIL PROTECTED] writes: What are you trying to do with this? Assignment (-) is not a function, But what the difference between - and e.g. the function length or

Re: [R] How to make - generic?

2003-07-26 Thread Ted Harding
On 26-Jul-03 Peter Dalgaard BSA wrote: Peter Dalgaard BSA [EMAIL PROTECTED] writes: quote(-(a,b)) a - b Adding on to this, I think the point is that assignment bypasses the usual *evaluation* rules, even though it is syntactically a binop. I think it basically has to be so: For one

Re: [R] How to make - generic?

2003-07-26 Thread Duncan Murdoch
On Sat, 26 Jul 2003 14:24:48 +0100, you wrote: Am Samstag, 26. Juli 2003 11:38 schrieb Peter Dalgaard BSA: I think it basically has to be so: For one thing, it is kind of difficult to check for a signature match without evaluating the arguments and the left hand side of an assignment will not

Re: [R] How to make - generic?

2003-07-26 Thread Patrick Burns
I think Brian's question --- what are you trying to do? -- should be the first order of business. Someone can make R do just about anything, but it is better to do a few things very well than lots of things in a muddled way. So. What is the advantage of using assignment as a generic? I'm

RE: [R] R won't connect to the internet on SUSE Linux 8.1

2003-07-26 Thread Luke Tierney
On the SuSE setup I have access to it seems that for whatever reason the environment variable no_proxy is defined as 'localhost' in the shell initialization files /etc/SuSEconfig/csh.cshrc and /etc/SuSEconfig/profile. This turns use of proxy's off in the R internals. See if you have it defined,

[R] Time Plot Question.

2003-07-26 Thread John Jaynes
Hello, I have some data (sar -A -f sar_data.file mydata) that span 24 hours, more or less, 00:00:00 - 23:59:59, or so. I would like to retain and plot data for all 24 x 60 x 60 = 86,400 seconds. I am able to set the x coordinates equal to ISOdate( year, month, day, hour, minute, second)

Re: [R] Time Plot Question.

2003-07-26 Thread Prof Brian Ripley
x0 - ISOdate(2003, 7, 13, 0, 0, 0) x - x0 + seq(0, 86400) is what you are asking for, or at least it is in the GMT time zone. The reason your code is so slow is that expanding vectors by c() is very wasteful. If you have pre-allocated x and assigned values by indexing I think it would have

[R] Re: Programs stopped working--.print

2003-07-26 Thread Peter Muhlberger
Thank you to everyone who replied to my curious problem, which just got more curious. Today I closed my copy of R, opened up a different copy of .RData (in another directory), one that didn't have the .print problem. Worked w/ that for a few minutes. Then closed R again restarted from the copy

[R] A model for disease progression

2003-07-26 Thread Damon Wischik
I would be grateful for advice about the following problem. It's not directly R-related, but I'm hoping that R will help me analyse the following data. I have a table which indicates the progression of a certain age-related disease. At a certain point in time, a population was sampled; and I

Re: [R] A model for disease progression

2003-07-26 Thread Christian Schulz
Perhaps the package msm (Multi-state Markov models in continuous time ) is interesting for you? christian - Original Message - From: Damon Wischik [EMAIL PROTECTED] To: R-Help [EMAIL PROTECTED] Sent: Saturday, July 26, 2003 8:14 PM Subject: [R] A model for disease progression I

[R] Drawing boxplots in pairs function

2003-07-26 Thread Masayoshi Hayashi
I tried the following command to produce boxplot of diagonals in pairs function: pairs(t1.5,diag.panel=boxplot) Error in pairs.default(t1.5, diag.panel = boxplot) : The panel function made a new plot The graphics device draws two graphs, one with a rectangle at