Displaying 4 results from an estimated 4 matches for "funarg".
Did you mean:
lunarg
2005 Jul 20
2
unable to call R t-test from Java
...(value );
System.err.println("\r\n");
}
}
/**
* if I pass mean a org.omegahat.Environment.DataStructures.numeric what do I get? NaN
*/
static public void runMeanByNumericList_nan(REvaluator e, ROmegahatInterpreter interp)
{
Object[] funArgs = new Object[1];
// given argument is not numeric or logical
org.omegahat.Environment.DataStructures.numeric rList1 = new org.omegahat.Environment.DataStructures.numeric(3);
double[] dList = new double[3];
dList[0] = (double) 1.1;...
2003 Oct 23
0
Problem w/ SJava package
...rgs){
ROmegahatInterpreter interp = new ROmegahatInterpreter(
ROmegahatInterpreter.fixArgs(args),false);
REvaluator e=new REvaluator();
System.out.println("done w/ evaluator constructor");
// String[] objects = (String[])e.call("objects");
int[] seq;
Object[] funArgs = new Object[2];
funArgs[0]=new Integer(1);
funArgs[1]=new Integer(10);
seq=(int[])e.call("seq",funArgs);
System.out.println("length "+seq.length);
for(int i=0;i<seq.length;i++){
System.out.print(seq[i]+" ");
}
System.out.println();
}
pu...
2008 Dec 08
4
R and Scheme
...s;
subscripting; general style; etc. I would appreciate corrections or
additions from more experienced users of R -- I'm sure that some of the
points below simply reflect my ignorance.
==Similarities to Scheme==
R has first-class function closures. (i.e. correctly supports upward and
downward funarg).
R has a single namespace for functions and variables (Lisp-1).
==Important dissimilarities to Scheme (as opposed to other Lisps)==
R is not properly tail-recursive.
R does not have continuations or call-with-current-continuation or other
mechanisms for implementing coroutines, general iterato...
2005 Jul 27
1
unable to source a .R file using RJava
...e != null)
interp.show(value);
}
/**
*
*/
static public void main(String[] args)
{
ROmegahatInterpreter interp = new ROmegahatInterpreter(ROmegahatInterpreter.fixArgs(args), false);
REvaluator e = new REvaluator();
Object[] funArgs;
String[] objects;
Object value;
int i;
run_sourceRFile(e, interp);
}
}
the corresponding core dump when using java
--------------------------------------------
[lobrien at fox] ./RJava
Loading RInterpreter library
R : Copyright 2005, The R Foundation for...