search for: newform

Displaying 7 results from an estimated 7 matches for "newform".

2007 Apr 23
3
getElementsBySelector problem in IE
...ce): var mostRecentForm = $$(''fieldset.photo_fields'').last(); // get the bottom fieldset var formNumber = mostRecentForm.id.replace(''photo_fields_'',''''); // find the photo'' s object id from the fieldsets CSS id var rx = /n_\d/; var newFormNumber = rx.test(formNumber) ? Number(formNumber.replace(''n_'','''')) + 1 : 0 ; // if the id looks like "n_?" then give it the next number, otherwise number it 0 new Insertion.After(mostRecentForm, ''<fieldset id="photo_fields_n_''...
2013 Feb 04
2
Modifying a function programmatically
...list(b=10,c=12)) [1] 23 # - but I would like a function. Hence I do: ll <- alist(b=, c=, eval(expr2)) ff2 <- as.function(ll) ff2(b=10,c=12) [1] 23 # BUT I am only half-way where I want to be because the alist(b=, c=, ...) # requires me plugin the remaining formals by hand. I do: newformals <-setdiff(names(formals(ff)), names(vals)) vv <- vector("list", length(newformals)) names(vv) <- newformals (hh <- c(vv, expr2)) $b NULL $c NULL [[3]] { 1 + b + c } (ff3 <- as.function(hh)) function (b = NULL, c = NULL) { 1 + b + c } ff3(10,12) [1...
2009 Apr 30
1
stepAICc
Dear R users, Would it be difficult to change the code of stepAIC (from the MASS library) to use AICc instead of AIC? It would be great to know of someone has tried this already. Best wishes Christoph.
2005 Mar 18
2
logistic model cross validation resolved
...mator='cv', model=myglm, est.para=control.errorest(list.tindx = cc)) # determine misclassification error # first convert to factor width = length(mdata) response <- as.factor(as.integer(mdata[[rpos]])) newmatrix <- data.frame(cbind(mdata[1:(rpos-1)], response, mdata[(rpos+1):width])) newform <- as.formula(paste('response ~ ', as.character(form)[[3]])) me <- errorest(newform, newmatrix, estimator='cv', model=myglm, predict=myfacpred, est.para=control.errorest(list.tindx = cc)) ret <- data.frame(cbind(ee, me)) return(ret) }
2001 May 30
2
environments
I would like to be able, inside a function, to create a new function, and use it as part of a formula as an argument to, say, gnls or nlme. for example: MyTop <- function(data=dta) { Cexp <- function(dose,A,B,m){...} Model <- as.formula(paste("y","~ Cexp(",paste(formals(Cexp),collapse =", "),")")) MyCall <-
2006 Nov 11
2
Setting Ajax.Updater update target to alternate window?
I need to make a call to Ajax.Updater(container, url, options) where container needs to be a DOM element in another window. So assuming my form is in window "X", can I specify a DOM element in window "Y" as the update target for my AJAX call? If I can, what is the correct syntax? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Jun 14
3
problem trying to update multiple <DIV> elements with AJAX
I''ve been trying for days now to figure this out on my own, but I can''t, so this is my cry for help. Here''s my situation: I need to update multiple <DIV> elements on a page, each with its own HTML, but I just can''t figure out how to get it to work. That is, I want to replace everything within each <DIV> element with something new. When I try what