<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Qlikview script: manipulate table data as whole columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-script-manipulate-table-data-as-whole-columns/m-p/1601086#M596565</link>
    <description>&lt;P&gt;Best I have is the following, it is Sense, but it might help you.&amp;nbsp; The link is from the new Data Literacy project free courses, check out the one on R integration, there may be something in that which may help you get things sorted or confirm we cannot do it, best I have:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qcc.qlik.com/course/view.php?id=1042" target="_blank"&gt;https://qcc.qlik.com/course/view.php?id=1042&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 19:36:22 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-07-10T19:36:22Z</dc:date>
    <item>
      <title>Qlikview script: manipulate table data as whole columns</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-script-manipulate-table-data-as-whole-columns/m-p/8117#M596564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I am learning how to use Advanced Analytics functions within the Qlikview script, but I am stuck at a point where I think I am missing some basic Qlikview concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THis is what I am doing in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IrisLoad:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD observation, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [sepal length] as sepLen, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [sepal width] as sepWid, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [petal length] as petLen, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [petal width] as petWid, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [iris species]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Data\Iris.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SSELoad:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;R.ScriptEval('print(cbind(q$petLen, q$petWid, q$sepLen, q$sepWid))', petLen,&amp;nbsp;&amp;nbsp; petWid,&amp;nbsp;&amp;nbsp; sepLen,&amp;nbsp;&amp;nbsp; sepWid) as ClusterSpecies &lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident IrisLoad;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SSELoad, the fields petLen, petWid, sepLen, sepWid are sent to R one line at a time. I can see it from the R consolle, which is executing the print statement 150 times (the size of IrisLoad). How can I send this data (&lt;SPAN style="font-size: 13.3333px;"&gt;petLen, petWid, sepLen, sepWid &lt;/SPAN&gt;) to R as whole columns? So that petLen will be an array of 150 elements, and so on for the other fields? I want R to receive the data only once, executing the print statement of a table with 4 coumns and 150 records. Is this possible? Shall I use some type of aggregate function?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jan 2018 18:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-script-manipulate-table-data-as-whole-columns/m-p/8117#M596564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-28T18:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview script: manipulate table data as whole columns</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-script-manipulate-table-data-as-whole-columns/m-p/1601086#M596565</link>
      <description>&lt;P&gt;Best I have is the following, it is Sense, but it might help you.&amp;nbsp; The link is from the new Data Literacy project free courses, check out the one on R integration, there may be something in that which may help you get things sorted or confirm we cannot do it, best I have:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qcc.qlik.com/course/view.php?id=1042" target="_blank"&gt;https://qcc.qlik.com/course/view.php?id=1042&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 19:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-script-manipulate-table-data-as-whole-columns/m-p/1601086#M596565</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-07-10T19:36:22Z</dc:date>
    </item>
  </channel>
</rss>

