Displaying 4 results from an estimated 4 matches for "setmodel".
Did you mean:
secmodel
2008 May 13
2
Calling C code from R...wrapping C structures
...code from R, specifically calling a
function which populates a C struct.
typedef struct{
// contents
} Model;
void test(Model *m){
// fill the struct with crap
}
I compile the C code into a shared library, which loads into R properly. My
simple test functions work (i.e adding numbers etc)
setModel <- function(){
model<-vector("list", 6)
name(model) <- c( SET THE NAMES OF THE MODEL HERE )
model
}
t <- setModel()
testcode <- function(setModel){
dyn.load("Simulation.so")
foo <- .C("test", Model=setModel)
foo
}
testcode(t)
However I g...
2006 Feb 13
1
Not able to see length in another function
Hello everyone,
I have the following code that builds <option> into a <select>.
buildModel() is called first, then setModel().
For some reason, I can''t get the length of the "model" options in
setModel(), but can after they are built in buildModel();
function buildModel(originalRequest, json) {
var model = $(''model'');
//might need to clear options
//model.options.lengt...
2006 Feb 09
5
Ajax.Updater not populating element - please help
...4'';
Event.observe(''make'', ''change'', getModels, false);
Event.observe(''model'', ''change'', getYears, false);
setMake(the_make);
getModels();
/*
if (the_model != null) {
getModels();
setModel(the_model);
}
if (the_year != null) {
getYears();
setYear(the_year);
}
*/
}
function getModels() {
var url = ''/util/model_select_response'';
var pars = ''make=''+escape($F(''make''))+'',onComplete:setM...
2006 Feb 07
1
Help needed with conflicting EventObserver
...and I think that an EventObserver is causing a
conflict.
Here''s what I''m trying to do. I''m using this page as a create and
edit page for a car database. If I''m calling the page in edit mode,
I''ll want the make, model and year set (using the setMake(),
setModel() and setYear() functions).
I have an EventObserver on the make and model fields so that when they
change, they are updated.
The problem seems to be between the Updater call in setMake() and the
EventObserver for the make field.
Any suggestions on how I could rewrite this would be greatly apprec...