<?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 How to organize this non-standard form? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-organize-this-non-standard-form/m-p/754705#M93693</link>
    <description>&lt;P&gt;Thanks Experts! I'll just sort it out the stupid way and see if there's a better way.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
ca = "这";
Column( ca ) &amp;lt;&amp;lt; Formula(
	If( Left( 是, 1 ) == "#",
		r = Row();
		a = Substitute( 是, "#", "" );
		"";
	,
		b = Row() - r;
		If( a != "拉丁" | a != "拉丁" | a != "假名" | a != "數字、分數",
			Word( b, a, "、" ),
			a || Munger( 是, 3, 1 )
		);
	)
);
dt &amp;lt;&amp;lt; run formulas;
Column( ca ) &amp;lt;&amp;lt; deleteFormula;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20240515223138.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64251iB755775B94AC988E/image-size/large?v=v2&amp;amp;px=999" role="button" title="20240515223138.png" alt="20240515223138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 14:40:40 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2024-05-15T14:40:40Z</dc:date>
    <item>
      <title>How to organize this non-standard form?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-organize-this-non-standard-form/m-p/754705#M93693</link>
      <description>&lt;P&gt;Thanks Experts! I'll just sort it out the stupid way and see if there's a better way.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
ca = "这";
Column( ca ) &amp;lt;&amp;lt; Formula(
	If( Left( 是, 1 ) == "#",
		r = Row();
		a = Substitute( 是, "#", "" );
		"";
	,
		b = Row() - r;
		If( a != "拉丁" | a != "拉丁" | a != "假名" | a != "數字、分數",
			Word( b, a, "、" ),
			a || Munger( 是, 3, 1 )
		);
	)
);
dt &amp;lt;&amp;lt; run formulas;
Column( ca ) &amp;lt;&amp;lt; deleteFormula;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20240515223138.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64251iB755775B94AC988E/image-size/large?v=v2&amp;amp;px=999" role="button" title="20240515223138.png" alt="20240515223138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 14:40:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-organize-this-non-standard-form/m-p/754705#M93693</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-05-15T14:40:40Z</dc:date>
    </item>
    <item>
      <title>回复： How to organize this non-standard form?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-organize-this-non-standard-form/m-p/754725#M93694</link>
      <description>&lt;P&gt;The difficulty here is that the number of headings does not match the number of lines. Is there a better way to handle this?&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-05-15_22-43-40.png" style="width: 645px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64252i4623C24B9C33E5B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-05-15_22-43-40.png" alt="2024-05-15_22-43-40.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 14:46:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-organize-this-non-standard-form/m-p/754725#M93694</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-05-15T14:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to organize this non-standard form?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-organize-this-non-standard-form/m-p/754731#M93698</link>
      <description>&lt;P&gt;I'm not exactly sure how you want to fill those rows but here is a guess&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$DOWNLOADS/symbols.jmp");
newcol = dt &amp;lt;&amp;lt; New Column("header", Character, Nominal);
dt &amp;lt;&amp;lt; Move Selected Columns(newcol, To First);
Column(dt, 2) &amp;lt;&amp;lt; Set Name("symbol");

cur_headers = {};
cur_header = "";

dt &amp;lt;&amp;lt; Begin Data Update;
For Each Row(dt,
	If(Starts With(:symbol, "#"), // Header row
		cur_headers = Words(:symbol, "#、");
		cur_header = "";
	,
		If(N Items(cur_headers) &amp;gt; 0,
			cur_header = Remove From(cur_headers, 1)[1];
		);
	);
	:header = cur_header;
);
dt &amp;lt;&amp;lt; End Data Update;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1715786146076.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64253iDE6A44242B47AFB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1715786146076.png" alt="jthi_0-1715786146076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 15:15:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-organize-this-non-standard-form/m-p/754731#M93698</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-05-15T15:15:54Z</dc:date>
    </item>
  </channel>
</rss>

