Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
calculate_r_expression [2018/09/18 12:52]
francisco [Multiply each value of the passed Lookup Table by itself]
calculate_r_expression [2018/09/18 14:13]
francisco [Tables / Lookup Tables]
Line 108: Line 108:
 === Lookup Tables === === Lookup Tables ===
  
-Lookup Tables are transferred to R as a List with two columns, "Keys" and "Values".+Lookup Tables are transferred to R as a List with two columns, "Key" and "Value".
  
 Each column can be individually accessed by using the ''​$''​ operator, for example: Each column can be individually accessed by using the ''​$''​ operator, for example:
  
-  * ''​t1$Keys[ 1 ]''​ will access the first key of the Lookup Table ''​t1''​. ​+  * ''​t1$Key[ 1 ]''​ will access the first key of the Lookup Table ''​t1''​. ​
    
-  * ''​t2$Values[ 2 ]''​ will access the second value of the Lookup Table ''​t2''​+  * ''​t2$Value[ 2 ]''​ will access the second value of the Lookup Table ''​t2''​
  
 === Tables === === Tables ===
Line 142: Line 142:
 Expression: Expression:
 <code rsplus> <code rsplus>
-tableMean <- mean( t1$Values ​);+tableMean <- mean( t1$Value );
 print( paste( "Mean is", tableMean ) ); print( paste( "Mean is", tableMean ) );
 outputDouble( "​mean",​ tableMean ); outputDouble( "​mean",​ tableMean );
 </​code>​ </​code>​
  
-Noticed the ''​print()''​ statement? Dinamica EGO's Message Log will show output messages from the R script (as Result'​s).+Noticed the ''​print()''​ statement? Dinamica EGO's Message Log will show output messages from the R script (as Result'​s).<note warning>​If the Message Log level is Unconditional,​ the messages will not be printed.</​note>​
  
 ==== Plot passed Lookup Table to an image on the path specified by passed String ==== ==== Plot passed Lookup Table to an image on the path specified by passed String ====