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

2009-06-29 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 stop-wat

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

2009-06-29 Thread Raymond Wan
Hi, I. Soumpasis wrote: 2009/6/29 C騡ar Freitas 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 elapsed 27.242 0.004 27.275

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 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
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", who

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

[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] 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 comput

Re: [R] Plotting (vector,matrix)

2007-09-15 Thread Raymond Wan
jim holtman wrote: > matplot(x,y) > > Ah, thanks -- I got it working! Actually, I was getting a "must have the same number of rows" error since x has the same number of columns as y, but x itself is a single row. This worked for me when I transposed y...which is ok for my problem: matplot

[R] Plotting (vector,matrix)

2007-09-15 Thread Raymond Wan
Hi all, I'm still a bit new to R and I'm trying to figure something out. I have the solution but the solution is what a C programmer would do :-) and I was wondering if someone could tell me the R way of doing it... What I have is a vector x of length |x|. And a matrix y of size m rows and