Re: [R] a bug when subtracting vectors?

2007-09-24 Thread Raymond Wan
Samuel Kemp wrote: When subtracting, all numbers should be to 2 decimal places. Why is R calculating it to 15 decimal places -- the output is essentially wrong 112.47-112.30=0.17 NOT 0.172. I suspect I am encoding this incorrectly? Well, two comments...one is not computer

[R] coloring agnes plots

2009-06-22 Thread Raymond Wan
Hi all, I am creating dendrograms using agnes and was wondering if it is possible to add color to the leaves (and just the leaves). For example, in the documentation, they have an example using the votes.repub data set. If I wanted to make the word Washington green (and only Washington),

Re: [R] coloring agnes plots

2009-06-22 Thread Raymond Wan
Hi all, Raymond Wan wrote: I am creating dendrograms using agnes and was wondering if it is possible to add color to the leaves (and just the leaves). I think I can answer my own question :-). Just found out about the A2R package, which seems to do what I am looking for... Seems to work

Re: [R] (performance) time in Windows vs Linux

2009-06-29 Thread Raymond Wan
Hi, milton ruser wrote: In fact I have a quadcore. But how can I know if Linux are really using only one core, and how can I setup it to use the 4cores? I don't know the answer in the context of R -- I didn't know that R can use multiple cores by default? But in general, I use htop,

Re: [R] (performance) time in Windows vs Linux

2009-06-29 Thread Raymond Wan
Hi Brian, Thank you for the clarification -- the first part does set the record straight about what I thought about R. I would expect a program to run on a single core by default unless something specifically (and somewhat non-trivial) was done to it. Prof Brian Ripley wrote: If you want

Re: [R] (performance) time in Windows vs Linux

2009-06-29 Thread Raymond Wan
Prof Brian Ripley wrote: I meant to write not so for 'top' in the final para. Ah, I'm not certain enough to know that htop works for threads as well...so I was quick to jump to agreeing with you. :-) I only know it works for multi-cores... Ray

Re: [R] (performance) time in Windows vs Linux

2009-06-29 Thread Raymond Wan
Hi, I. Soumpasis wrote: 2009/6/29 C騡ar Freitas cafanselm...@yahoo.com.br This is true. So I tried the same computer with windows XP and ubuntu 8.10 64bit dual core @3Gz and 4MB RAM Windows 32bit results: user system elapsed 21.660.02 21.69 Linux 64bit Results user system

Re: [R] (performance) time in Windows vs Linux

2009-06-30 Thread Raymond Wan
Hi Zeljko, Zeljko Vrba wrote: Windows 32bit results: user system elapsed 21.660.02 21.69 Linux 64bit Results user system elapsed 27.242 0.004 27.275 Using wall-clock time metric is not two different ways of timing. He could have just as well measured the time using