search for: tqice

Displaying 1 result from an estimated 1 matches for "tqice".

Did you mean: tice
2009 Aug 27
2
Comparing and adding two data series
...8,4.0140,0.0020,2.5593,0.1620,2.513,0.3798, .0033,0.2282, 0.1614)   I need to calculate the total in dataset B corresponding to the numbers in dataset A i.e. for no 1 in A, I need the total as 4.0140+0.3798 (as 1 is repeated twice) for no 2, I need the total as 0.0728+0.9538 (as 2 is also repeated tqice and so on) Thus for no 31 in A, I should get only 0.1614.     I have written the R code but its not working. My code is as follows,   # --------------------------------------   D <- array()   i   = 1 for (i in 1:max(A)) { D[i] = 0 i   = i + 1 }   # _____________________________________   T <-...