[Thread Prev][Thread Next][Index]

Re: [ferret_users] Re: Calling R in ferret



Jagadish,

>I attempted to call a normality test in R from within ferret without success. 
>
>yes? list strfloat(spawn("echo 'cat(shapiro.test(`v1`))' | R --slave --vanilla"))
> **ERROR: invalid command: grave accent doesnt evaluate to scalar

What argument(s) does shapiro.test() require?  (I not nothing about R.)

The error you get is exactly what the error message states.
The grave accent evaluation works only on a scalar:

yes? let v = {1, 4, 9, 16}
yes? say `v`
 **ERROR: invalid command: grave accent doesnt evaluate to scalar
          v
yes? let u = 2
yes? say `u`
 !-> MESSAGE/CONTINUE 2
2
yes?

Ryo


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

Privacy Policy | Disclaimer | Accessibility Statement