Re: [R] rJava and matrices

2008-02-18 Thread Ben Woodcroft
tructure.DistanceMatrix.setDistances(double[] data, > int[] dim) > > invoked along the lines of > > .jcall(distanceMatrix, "V", "setDistances", as.vector(t), dim(t)) > > (sorry, I'm a bit rusty on this so details might be incorrect) > > This probably

[R] rJava and matrices

2008-02-18 Thread Ben Woodcroft
Hi list, I'm wanting to use a matrix as input to some java code, but I seem to be unable to do this (See code below). When searching online for a solution I found that rJava 0.5-2 (the version under development not yet in CRAN) is adding "direct support for raw vectors as method parameters". Is th