Displaying 2 results from an estimated 2 matches for "nswtch".
Did you mean:
swtch
2009 May 04
0
to the person who asked about dividing by the base row
...<- .df[(.df$n !=
1),c(3,4,5,6,7)]/.df[(.df$n == 1),c(3,4,5,6,7)]
? ? ? .df
})
# WORKING CODE
#===========================================================================
?
DF <- read.table(textConnection("sp wg n v.realtime v.cputime v.tcputime
v.idletime v.nswtch
9 0 1 1 28.61300 28.61 28.6039 0.00000e+00 407
1563 0 1 2 15.20270 30.38 28.5981 9.80523e-01 483
3128 0 1 4 12.50930 50.00 28.6053 1.07877e+01 489
4682 0 1 6 12.10260 72.55 28.6193 2.20203e+01 488
6241 0 1 8 12.11510 96.80 28.6448 3.41126e+01 494
121 0 10 1 28.61530 28.60 28.6056...
2009 May 04
2
Calculating relative ratios in a data frame..
I have a data-set that is structured as follows:
sp wg n v.realtime v.cputime v.tcputime v.idletime v.nswtch
9 0 1 1 28.61300 28.61 28.6039 0.00000e+00 407
1563 0 1 2 15.20270 30.38 28.5981 9.80523e-01 483
3128 0 1 4 12.50930 50.00 28.6053 1.07877e+01 489
4682 0 1 6 12.10260 72.55 28.6193 2.20203e+01...