Re: [R] Calculating relative ratios in a data frame..

2009-05-04 Thread Zeljko Vrba
On Mon, May 04, 2009 at 04:44:37PM -0400, jim holtman wrote: > > Here is a way -- you are dividing by zero in the scaling: > Thanks to both of you who answered. I know about division by zero, but I basically ignore rows having n==1 when plotting. __ R-

Re: [R] Calculating relative ratios in a data frame..

2009-05-04 Thread jim holtman
Here is a way -- you are dividing by zero in the scaling: > x sp wg n v.realtime v.cputime v.tcputime v.idletime v.nswtch 9 0 1 1 28.61300 28.6128.6039 0.000 407 1563 0 1 2 15.20270 30.3828.5981 0.9805230 483 3128 0 1 4 12.50930 50.0028.6

[R] Calculating relative ratios in a data frame..

2009-05-04 Thread Zeljko Vrba
I have a data-set that is structured as follows: spwgn v.realtime v.cputime v.tcputime v.idletime v.nswtch 9 0 11 28.61300 28.6128.6039 0.0e+00 407 1563 0 12 15.20270 30.3828.5981 9.80523e-01 483 3128 0 1