[Thread Prev][Thread Next][Index]

Re: [ferret_users] Re: Calling R in ferret



Jagadish

> I need to pass an array ( v in your example).
> Is this not possible?

I don't think it's possible to pass a vector object,
but if R accepts something like

  shapiro.test([1,4,9,16])

then it is probably possible to construct a character string
"[1,4,9,16]" within Ferret and pass it to R.

But, I would think it's a lot easier 

1) for Ferret to write the elements of your vector into an
  external file; and

2) for R to read the values from it.

For (1), you can use the LIST command of Ferret
to write the elements of your vector into an external
text file.

For (2), you would need to figure out how R reads from files.

Cheers,
Ryo


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement