<?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: How to work with R tibble objects in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-work-with-R-tibble-objects/m-p/469278#M71303</link>
    <description>&lt;P&gt;I think the problem is caused by NA in the first column. JMP does not know how to deal with it. I don't think that JMP differentiates an empty string from a missing value in a Character column. You may consider changing NA to an empty string or some special string, if that works for you.&lt;/P&gt;</description>
    <pubDate>Sat, 12 Mar 2022 03:18:34 GMT</pubDate>
    <dc:creator>peng_liu</dc:creator>
    <dc:date>2022-03-12T03:18:34Z</dc:date>
    <item>
      <title>How to work with R tibble objects</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-work-with-R-tibble-objects/m-p/468993#M71279</link>
      <description>&lt;P&gt;I really like integrating R code in JSL, but how can I deal with the correct handling of a tibble (dplyr) object. It seems like the object is damaged, when displayed in JMP. The output on my PC is visible in the appended image.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;R Init();
R Submit("library(dplyr)");
x = R Execute({},{data_table},"\[ 
    data_table &amp;lt;- tibble(x = c("A", NA, "B", "C"), y = c("D", "E", "F", "G"))
]\"
);
data_table &amp;lt;&amp;lt; New Data View();
Show(data_table);
R Term();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:12:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-work-with-R-tibble-objects/m-p/468993#M71279</guid>
      <dc:creator>JHX</dc:creator>
      <dc:date>2023-06-09T18:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with R tibble objects</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-work-with-R-tibble-objects/m-p/469278#M71303</link>
      <description>&lt;P&gt;I think the problem is caused by NA in the first column. JMP does not know how to deal with it. I don't think that JMP differentiates an empty string from a missing value in a Character column. You may consider changing NA to an empty string or some special string, if that works for you.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 03:18:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-work-with-R-tibble-objects/m-p/469278#M71303</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-12T03:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with R tibble objects</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-work-with-R-tibble-objects/m-p/471173#M71545</link>
      <description>&lt;P&gt;thank you peng_liu, at least it works. I was not aware that the big dot indication missing values in JMP is only for the numbers and character do not have NA values. I still hope for an better NA handling in the JSL/R interface in comming versions.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;R Init();
R Submit("
	library(dplyr)
	library(tidyr)
");

x  = R Execute({},{data_table},"\[
	data_table &amp;lt;- tibble(x = c(1, NA, 2, 3), y = c("D", "E", "F", "G"), z = c("A", NA, "B", "C"), a = c("H", "I", "J", "K")) %&amp;gt;%
		mutate(across(where(is.character), ~replace_na(.x, "")))
	data_table
	]\"
);

data_table &amp;lt;&amp;lt; New Data View( );
//limits &amp;lt;&amp;lt; New Data View();

Show(data_table);
R Term(); //Exit&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue_tibble_2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40946iECC3358AB1513AC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue_tibble_2.PNG" alt="issue_tibble_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 08:07:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-work-with-R-tibble-objects/m-p/471173#M71545</guid>
      <dc:creator>JHX</dc:creator>
      <dc:date>2022-03-18T08:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to work with R tibble objects</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-work-with-R-tibble-objects/m-p/471268#M71562</link>
      <description>&lt;P&gt;I am not sure what third party interfacing with R can do. If I remember correctly, NA in R is a specially encoded double precision number, so it does not align well with other elements in the same vector in memory in this case. Please contact &lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt; in case there is a better solution.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 17:32:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-work-with-R-tibble-objects/m-p/471268#M71562</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-18T17:32:45Z</dc:date>
    </item>
  </channel>
</rss>

