<?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: File Import: specify NAN? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/File-Import-specify-NAN/m-p/707286#M89169</link>
    <description>&lt;P&gt;Might be just case with small .csv file, but JMP seems to be able to convert some already (NA and NAN at least)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1702049718146.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59468iBC59BC7CAB9B2D08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1702049718146.png" alt="jthi_0-1702049718146.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This isn't recognized, but you can force character columns to be numeric&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1702049797656.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59469i15689C7CDA115087/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1702049797656.png" alt="jthi_1-1702049797656.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1702049805740.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59470i0D781E3BCE1D6533/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1702049805740.png" alt="jthi_2-1702049805740.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You will get a message about &lt;STRONG&gt;ONE&lt;/STRONG&gt; of the columns&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1702049824455.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59471i50BD327C3555F1E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1702049824455.png" alt="jthi_3-1702049824455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This most likely interrupts the operation from affecting other column (otherwise could work?). Now you would have to modify the script JMP creates for you&amp;nbsp; (update all columns to be numeric)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"$DOWNLOADS/mycsv.csv",
	columns(
		New Column("col1", Numeric, "Continuous", Format("Best", 12)),
		New Column("col2", Numeric, "Continuous", Format("Best", 12)),
		New Column("col3", Character, "Nominal")
	),
	Import Settings(
		End Of Line(CRLF, CR, LF),
		End Of Field(Comma, CSV(0)),
		Strip Quotes(1),
		Use Apostrophe as Quotation Mark(0),
		Use Regional Settings(0),
		Scan Whole File(1),
		Treat empty columns as numeric(0),
		CompressNumericColumns(0),
		CompressCharacterColumns(0),
		CompressAllowListCheck(0),
		Labels(1),
		Column Names Start(1),
		First Named Column(1),
		Data Starts(2),
		Lines To Read("All"),
		Year Rule("20xx")
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There could maybe be an option but I feel like you would end up adding massive amounts of different options there in the end, if you had to be able to handle all special cases that weirdly formatted text files might have. I just handle these case by case using either scripting or JMP's data table operations as there are so many different cases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general something like this could also be scripted&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

my_csv = Load Text File("$DOWNLOADS/mycsv.csv");
Substitute Into(my_csv, "NV", ".");

dt = Open(Char To Blob(my_csv), "text");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 15:45:51 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-12-08T15:45:51Z</dc:date>
    <item>
      <title>File Import: specify NAN?</title>
      <link>https://community.jmp.com/t5/Discussions/File-Import-specify-NAN/m-p/707010#M89139</link>
      <description>&lt;P&gt;When importing a csv file via Open or MFI, is there an option to specify the String for missing values, e.g. NAN,&amp;nbsp; NV, *&lt;BR /&gt;such that numeric columns can be directly identified as such.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 21:27:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-Import-specify-NAN/m-p/707010#M89139</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-12-07T21:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: File Import: specify NAN?</title>
      <link>https://community.jmp.com/t5/Discussions/File-Import-specify-NAN/m-p/707286#M89169</link>
      <description>&lt;P&gt;Might be just case with small .csv file, but JMP seems to be able to convert some already (NA and NAN at least)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1702049718146.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59468iBC59BC7CAB9B2D08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1702049718146.png" alt="jthi_0-1702049718146.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This isn't recognized, but you can force character columns to be numeric&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1702049797656.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59469i15689C7CDA115087/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1702049797656.png" alt="jthi_1-1702049797656.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1702049805740.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59470i0D781E3BCE1D6533/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1702049805740.png" alt="jthi_2-1702049805740.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You will get a message about &lt;STRONG&gt;ONE&lt;/STRONG&gt; of the columns&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1702049824455.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59471i50BD327C3555F1E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1702049824455.png" alt="jthi_3-1702049824455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This most likely interrupts the operation from affecting other column (otherwise could work?). Now you would have to modify the script JMP creates for you&amp;nbsp; (update all columns to be numeric)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"$DOWNLOADS/mycsv.csv",
	columns(
		New Column("col1", Numeric, "Continuous", Format("Best", 12)),
		New Column("col2", Numeric, "Continuous", Format("Best", 12)),
		New Column("col3", Character, "Nominal")
	),
	Import Settings(
		End Of Line(CRLF, CR, LF),
		End Of Field(Comma, CSV(0)),
		Strip Quotes(1),
		Use Apostrophe as Quotation Mark(0),
		Use Regional Settings(0),
		Scan Whole File(1),
		Treat empty columns as numeric(0),
		CompressNumericColumns(0),
		CompressCharacterColumns(0),
		CompressAllowListCheck(0),
		Labels(1),
		Column Names Start(1),
		First Named Column(1),
		Data Starts(2),
		Lines To Read("All"),
		Year Rule("20xx")
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There could maybe be an option but I feel like you would end up adding massive amounts of different options there in the end, if you had to be able to handle all special cases that weirdly formatted text files might have. I just handle these case by case using either scripting or JMP's data table operations as there are so many different cases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general something like this could also be scripted&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

my_csv = Load Text File("$DOWNLOADS/mycsv.csv");
Substitute Into(my_csv, "NV", ".");

dt = Open(Char To Blob(my_csv), "text");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 15:45:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-Import-specify-NAN/m-p/707286#M89169</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-12-08T15:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: File Import: specify NAN?</title>
      <link>https://community.jmp.com/t5/Discussions/File-Import-specify-NAN/m-p/707287#M89170</link>
      <description>&lt;P&gt;nice workaround :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load - Substitute - Open&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 15:49:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-Import-specify-NAN/m-p/707287#M89170</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-12-08T15:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: File Import: specify NAN?</title>
      <link>https://community.jmp.com/t5/Discussions/File-Import-specify-NAN/m-p/802606#M97897</link>
      <description>&lt;P&gt;related wish:&lt;BR /&gt;&lt;LI-MESSAGE title="Option to override common non-numeric data (e.g. &amp;amp;quot;N/A&amp;amp;quot;, &amp;amp;quot;Nil&amp;amp;quot;)" uid="641662" url="https://community.jmp.com/t5/JMP-Wish-List/Option-to-override-common-non-numeric-data-e-g-quot-N-A-quot/m-p/641662#U641662" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2024 16:32:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-Import-specify-NAN/m-p/802606#M97897</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-09-29T16:32:01Z</dc:date>
    </item>
  </channel>
</rss>

