search for: obj_name

Displaying 8 results from an estimated 8 matches for "obj_name".

Did you mean: obj_mlme
2012 May 29
2
Use variable inside Function for updating the matrix
...10 E 50 ---------------------------------------------- Now i got the solution for this, dat[dat$AGE<=35 & da$AGE>18,"ELIGIBLE"]<-YES My issue is, i assigned AGE to a variable and that variable i tried inside the function. for eg:- *Obj_Name* <- AGE dat[dat$*Obj_Name*<=35 & da$*Obj_Name*>18,"ELIGIBLE"]<-YES Now, what is i getting the error !. So,could you please help me, what is the solution *pass column name through *variable to this function ? Can i get immediate solution please ? - Thanks Antony -- Vi...
2011 May 18
1
How to make array of regression objects
...have made couple logistic regressions, what making a distribution of some event. Currently, i store it like this: o1 <- lrm(...) o2 <- lrm(...) o3 <- lrm(...) ... Then, i have made a function to peak required regression object from this variables by it number: get_object <- function(obj_name, nModel) { eval (parse(text=paste("o <- ", obj_name, nModel, sep=""))) o } Is there a better way to do it? I have try to store it in the matrix using data.frame(), but object become destroyed after that and predict() function do not recognize it. Regards, Dmitrij Ku...
2013 Sep 25
1
Best and worst values for each date
Hi, May be you can try this: obj_name<- load("arun.RData") Pred1<- get(obj_name[1]) Actual1<- get(obj_name[2]) library(reshape2) dat<-cbind(melt(Pred1,id.vars="S1"),value2=melt(Actual1,id.vars="S1")[,3])? # to reshape to long form colnames(dat)[3:4]<- c("Predict","Actual"...
2013 Sep 27
0
Best and Worst values
Ira, obj_name<- load("arun.RData") Pred1<- get(obj_name[1]) Actual1<- get(obj_name[2]) dat2<- data.frame(S1=rep(Pred1[,1],ncol(Pred1)-1),variable=rep(colnames(Pred1)[-1],each=nrow(Pred1)),Predict=unlist(Pred1[,-1],use.names=FALSE),Actual=unlist(Actual1[,-1],use.names=FALSE),stringsAsFactor...
2006 May 03
2
Using a helper within another helper?
...ormat_planned_start_date @plan, ''plan'', ''planned_to_start_on'', ''Planned Start Date'' %> and from my helper: require ''date'' module HtmlHelper helper :date_helper include DateHelper def format_planned_start_date(obj, obj_name, field_name, label) text = "<tr><td valign=\"top\"><label for=\"#{obj_name}_#{field_name}\">" text += "</label></td>\n" if obj[field_name].nil? or DateTime.now < obj[field_name] text += "<td>&quot...
2006 Jun 01
9
access model from controller
Hello, Rather new to RoR, so I''m not sure about the terminology and such :-/ . My question is: how could I know the model which is associated to a controller? For example: - controller class is TestController, which is a subclass of ApplicationController - associated model class is Test How could I write some code in a method of ApplicationController to dermine the current
2012 Apr 05
0
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
...quot; (again, I think). I just want to implement try/finally semantics and propagate whatever exception was thrown back up the call stack. I've written a function to add what I think is all the necessary code for constructing/destructing an object: > AllocaInst* construct_obj( char const *obj_name, Type *obj_type, > Function *ctor, vector<Value*> &ctor_args, > Function *dtor ) { > > // Allocate object's storage and insert 'this' ptr into ctor args. > AllocaInst *const obj_ptr = createEntryBlockAll...
2012 Mar 23
2
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
On Mar 23, 2012, at 4:29 PM, Paul J. Lucas wrote: > On Mar 23, 2012, at 3:25 PM, Bill Wendling wrote: > >> Let's take your example. You will have code that looks like this: >> >> extern "C" void thunk_item_M_delete( void *v_that ) { >> item *that = 0; >> try { >> that = static_cast<item*>( v_that ); >>