search for: _sums

Displaying 2 results from an estimated 2 matches for "_sums".

Did you mean: sums
2009 May 23
1
create vectors within a double loop
...sum) one for each column in the "classification"-"thresholds" objects. The code # loop over "classifications" for (x in classifications) { # loop over sequence 1 to 10 for (i in 1:10) # store sum's per "source" column assign ( (paste ( x, "_sums", sep = "" )[i], sum ( !is.na ( get ( paste ( x, "_thresholds", sep = "" ) )[ ,i] ) ) ) } The problem The above piece of code gives me 10 new vectors but with only 1 value (e.g. the last derived from the loop) _instead_ of 10. Questions...
2008 Oct 06
1
Need to calculate within- and between- run CV
Dear R-helpers, I have a dataset named "qu", organized as follows: Sample Run Replicate Value 1 1 1 25 1 1 2 40 1 1 3 33 1 1 4 29 1 2 1 37 1 2 2 44 1 2 3 45 1 3 1 25 1 3 2 40 1 4 1 33 1 4 2 29 1 4 3 25 2 ... Basically, a sample was run on an assay multiple times within a single day. Each of these results is "Replicate". Then run was repeated several times in