search for: sumvar

Displaying 6 results from an estimated 6 matches for "sumvar".

Did you mean: sumar
2003 Jul 18
2
create a vector looping over a frame
..."AM" "AF" "Yr" how do i loop over a subset of variables in this frame to create a vector of length equal to the number of variables in the subset such that the vector's ith element is the result of an aggregate fncn applied to the ith variable? eg, sumvar<-c(sum(WM),...,sum(AF)) if i try for(i in 4:13){ sumVar<- sum(popA[,i]) sumVar2<-c(sumVar) } it returns > sumVar2 [1] 287567 > length(sumVar2) [1] 1 which is only the value at the last spot. i cant quite figure this simple loop. Thanks, Amer Siddique
2012 Jun 15
0
argument "x" is missing, with no default - Please help find argument x
...cv.evaluate$prediction <- predict(cv.model, newdata=cv.evaluate) obj.pred<-predict(cv.model) pred.table<-table(cv.evaluate$prediction, cv.evaluate$remitter) truepos<-pred.table[1,1] trueneg<-pred.table[2,2] falsepos<-pred.table[2,1] falseneg<-pred.table[1,2] sumvar<-epi.tests(c(truepos, falsepos , falseneg, trueneg), verbose=T) epi.tests(c(truepos, falsepos , falseneg, trueneg), verbose=F) # Calculate the overall accuracy. cv.evaluate$correct <- cv.evaluate$prediction == cv.evaluate$remitter mymean<-mean(cv.evaluate$correct) retlist<-d...
2014 Aug 02
2
[LLVMdev] Create "appending" section that can be partially dead stripped
On 01/08/14 19:37, Reid Kleckner wrote: > What happens if you drop appending linkage? I think it will just work, > since you are already using a custom section, which will ensure that all > the data appears contiguously in memory. Thanks for the suggestion, but it still puts everything in a single .section statement. > Although, I do worry about what LLVM's alias analysis will
2014 Aug 05
2
[LLVMdev] Create "appending" section that can be partially dead stripped
...l always be considered live. Jonas target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32- i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64- f80:128:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" define i32 @main() { Entry: %sumvar = alloca i32 ; make the second and third element live by directly referring them %eleptr1 = getelementptr [2 x i32]* @arr2, i64 0, i32 0 %eleptr2 = getelementptr [2 x i32]* @arr3, i64 0, i32 0 %ele1 = load i32* %eleptr1 %ele2 = load i32* %eleptr2 %sum1 = add i32 %ele1, %ele2 store i32...
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello, On Mac OS X, certain Aqua/Quartz UI functionality requires an application to be launched from within an app bundle, or (alternatively) requires a Carbon application with a resource fork. Playing with the wxWidgets distribution, I discovered that it is quite easy and transparent to make such a Carbon app from (I guess) any command line application. When applied to the R executable called
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello, On Mac OS X, certain Aqua/Quartz UI functionality requires an application to be launched from within an app bundle, or (alternatively) requires a Carbon application with a resource fork. Playing with the wxWidgets distribution, I discovered that it is quite easy and transparent to make such a Carbon app from (I guess) any command line application. When applied to the R executable called