<?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: Dif(col,n) function, but one that can handle subtracting between multiple datasets in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Dif-col-n-function-but-one-that-can-handle-subtracting-between/m-p/735058#M91586</link>
    <description>&lt;P&gt;If I understand correctly what you want to do, data table subscripting might be able to do what you want &lt;LI-MESSAGE title="Data table subscripting" uid="21013" url="https://community.jmp.com/t5/Uncharted/Data-table-subscripting/m-p/21013#U21013" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 15:20:17 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-03-14T15:20:17Z</dc:date>
    <item>
      <title>Dif(col,n) function, but one that can handle subtracting between multiple datasets</title>
      <link>https://community.jmp.com/t5/Discussions/Dif-col-n-function-but-one-that-can-handle-subtracting-between/m-p/735052#M91583</link>
      <description>&lt;P&gt;Hello - I've got some data that for these purposes is akin to spectroscopic (XRD diffractogram for those that are familliar). I'm trying to do a basic background subtraction, but I have 200+ diffractograms, so I'm trying to automate it. I have the table in stacked format, and I'd love to just say "Here are my xy columns, and here is an ID column, do a Dif(col,n) function in column 4 that instead of having a set n, it treats it as if the background dataset is always adjacent (or something) to the dataset you're trying to subtract from, so the n doesn't change from sample to sample. In general I'd like to have a simple way to say "here's the background signal, heres the sample signal, subtract," but I haven't found a clean way to do that, so this is one idea I'm having.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course this gets more complicated if your datasets aren't the same length, but I'm doing baby steps here since JMP doesn't make this simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I making sense?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 14:43:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dif-col-n-function-but-one-that-can-handle-subtracting-between/m-p/735052#M91583</guid>
      <dc:creator>ehchandlerjr</dc:creator>
      <dc:date>2024-03-14T14:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dif(col,n) function, but one that can handle subtracting between multiple datasets</title>
      <link>https://community.jmp.com/t5/Discussions/Dif-col-n-function-but-one-that-can-handle-subtracting-between/m-p/735058#M91586</link>
      <description>&lt;P&gt;If I understand correctly what you want to do, data table subscripting might be able to do what you want &lt;LI-MESSAGE title="Data table subscripting" uid="21013" url="https://community.jmp.com/t5/Uncharted/Data-table-subscripting/m-p/21013#U21013" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 15:20:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dif-col-n-function-but-one-that-can-handle-subtracting-between/m-p/735058#M91586</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-14T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dif(col,n) function, but one that can handle subtracting between multiple datasets</title>
      <link>https://community.jmp.com/t5/Discussions/Dif-col-n-function-but-one-that-can-handle-subtracting-between/m-p/736784#M91761</link>
      <description>&lt;P&gt;Sorry. Forgot to respond to this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmmmm. So one way to do this without table subscripting would be 1) find all unique ID's in the ID column and their rows, 2) make a matrix for the data for first ID, 3) do my rescaling of the data to fit the background, 4) subtract, 5) store in another column, 6) go back to 3 and do for next ID. How would data table subscripting make this process smoother?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a side question, if I wanted to add in the steps to add a spline fit to the data by ID, and then do the rescaling and subsequent steps, would expression handling like &lt;A href="https://community.jmp.com/t5/Discussions/JSL-creating-a-spine-line-for-changing-group-each-time/td-p/386120" target="_self"&gt;this&lt;/A&gt; be the best bet, or is there a better way to do this that you know of? I keep trying to make FDE work and its just not there yet, unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 13:21:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dif-col-n-function-but-one-that-can-handle-subtracting-between/m-p/736784#M91761</guid>
      <dc:creator>ehchandlerjr</dc:creator>
      <dc:date>2024-03-20T13:21:36Z</dc:date>
    </item>
  </channel>
</rss>

