Skip to content
Prev 308521 / 398503 Next

Trouble returning 2D array into R from Fortran

See inline.
On 20-10-2012, at 17:18, paulfjbrowne <paulfj.browne at gmail.com> wrote:

            
Why as.double(array("double",dim=c(2,length(ti))?
You are passing a character array to your fortran subroutine.
Use matrix(0,nrow=2,ncol=length(ti)) which will be a matrix of double precision's.

Berend