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
calculate_r_expression [2018/09/18 12:53]
francisco [Extract the mean of passed Lookup Table values]
calculate_r_expression [2018/09/18 14:14] (current)
francisco [R Script Outputs]
Line 97: Line 97:
   * Collections of numbers are valid number vector'​s.   * Collections of numbers are valid number vector'​s.
  
-  * A [[Lookup Table Type|Lookup Table]] requires //2// number vectors, one for the "Keys" and another for the "Values". Both vectors must have the same number of elements.+  * A [[Lookup Table Type|Lookup Table]] requires //2// number vectors, one for the "Key" and another for the "Value". Both vectors must have the same number of elements.
  
   * The ''​outputTable''​ function requires a table, that can be constructed with [[http://​www.r-tutor.com/​r-introduction/​data-frame | data.frame]] R function. There is another parameter that is optional with default value 1, and it means how many Key columns the table has, from the leftmost column.   * The ''​outputTable''​ function requires a table, that can be constructed with [[http://​www.r-tutor.com/​r-introduction/​data-frame | data.frame]] R function. There is another parameter that is optional with default value 1, and it means how many Key columns the table has, from the leftmost column.
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 147: Line 147:
 </​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 ====