浏览代码

Merge pull request #9910 from g-pan/H17297-NewNestedR

HPCC-17297 DOCS:Nested R dataset support

Reviewed-By: Jim DeFabia <james.defabia@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 年之前
父节点
当前提交
75fe5049b0
共有 1 个文件被更改,包括 28 次插入2 次删除
  1. 28 2
      docs/Installing_and_RunningTheHPCCPlatform/Installing_and_RunningTheHPCCPlatform.xml

+ 28 - 2
docs/Installing_and_RunningTheHPCCPlatform/Installing_and_RunningTheHPCCPlatform.xml

@@ -3407,6 +3407,34 @@ SUM(NOFOLD(s1b + s2b), a);
           </listitem>
         </orderedlist>
 
+        <para> </para>
+
+        <sect3 id="R_DataTypes">
+          <title>Mapping Datatypes</title>
+
+          <para>Some additional considerations for mapping data types in R.
+          </para>
+
+          <para>In HPCC the ECL <emphasis role="bold">RECORD</emphasis> maps
+          to an R <emphasis>list</emphasis>. </para>
+
+          <para>An ECL <emphasis role="bold">DATASET</emphasis> including a
+          nested dataset is mapped to an R <emphasis>dataframe</emphasis>.
+          </para>
+
+          <para>An ECL <emphasis role="bold">SET</emphasis> is mapped to an R
+          <emphasis>vector</emphasis>. </para>
+
+          <para>These principals apply to passing data from HPCC to R or data
+          returning to HPCC from R. There are usage examples of these concepts
+          available at:</para>
+
+          <para><ulink
+          url="https://github.com/hpcc-systems/HPCC-Platform/tree/master/testing/ecl/regress/embedR2.ecl">https://github.com/hpcc-systems/HPCC-Platform/tree/master/testing/regress/ecl/embedR2.ecl</ulink></para>
+
+          <para> </para>
+        </sect3>
+
         <sect3>
           <title>R Scope Options</title>
 
@@ -3438,8 +3466,6 @@ SUM(NOFOLD(s1b + s2b), a);
           until the end of the current workunit or the current instance of a
           Roxie deployed query, and are not shared with other
           instances.</para>
-
-          <para></para>
         </sect3>
       </sect2>
     </sect1>