APLX Help : Help on APL language : System Methods : ⎕EVAL Evaluate external expression
|
|
|
|
|
Implemented (as a system method) for the R external class only. Syntax:
The monadic The right argument is a text vector containing the expression. The result is the explicit result (if any) of evaluating the expression in the external environment. For example: r←'r' ⎕new 'r'
r.x←2 3⍴⍳6 ⍝ x is an R variable
r.x
1 2 3
4 5 6
r.⎕eval 'x[2,]'
4 5 6
r.⎕eval 'mean(x[2,])'
5
Note that the last line could be executed using the alternative syntax:
'r' ⎕eval 'mean(x[2,])'
5
|
|
APLX Help : Help on APL language : System Methods : ⎕EVAL Evaluate external expression
|
|
Copyright © 1996-2010 MicroAPL Ltd