<?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: Why does my date column in data frame change to a double in output from arc.write?  in R-ArcGIS Questions</title>
    <link>https://community.esri.com/t5/r-arcgis-questions/why-does-my-date-column-in-data-frame-change-to-a/m-p/769565#M30</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sara,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you provide a short example of what you're seeing? The output number you're showing does look like the VT_DATE object that is used internally in some formats for representing a date, but it shouldn't be displayed that way within ArcGIS. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Dec 2017 05:39:11 GMT</pubDate>
    <dc:creator>ShaunWalbridge</dc:creator>
    <dc:date>2017-12-02T05:39:11Z</dc:date>
    <item>
      <title>Why does my date column in data frame change to a double in output from arc.write?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/why-does-my-date-column-in-data-frame-change-to-a/m-p/769564#M29</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a column in a data frame with date (2016-08-25). When I transfer the file to ArcGIS, the output column is converted to a double format and it looks like this (16847). How do I maintain the date format during the transfer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 22:14:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/why-does-my-date-column-in-data-frame-change-to-a/m-p/769564#M29</guid>
      <dc:creator>SaraStrachan</dc:creator>
      <dc:date>2017-11-09T22:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my date column in data frame change to a double in output from arc.write?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/why-does-my-date-column-in-data-frame-change-to-a/m-p/769565#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sara,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you provide a short example of what you're seeing? The output number you're showing does look like the VT_DATE object that is used internally in some formats for representing a date, but it shouldn't be displayed that way within ArcGIS. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2017 05:39:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/why-does-my-date-column-in-data-frame-change-to-a/m-p/769565#M30</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2017-12-02T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my date column in data frame change to a double in output from arc.write?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/why-does-my-date-column-in-data-frame-change-to-a/m-p/769566#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the code I used and I've attached the input. The attached output was exported from the gdb.&lt;/P&gt;&lt;P&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;library(tidyverse)&lt;BR /&gt;library(lubridate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID_PM25_2017 &amp;lt;- read.csv("E:/D_drive/R_Projects/Monitors/ID_PM25_dailyAQI_070117to093017.csv",header = TRUE,sep=",", stringsAsFactors = FALSE)&lt;/P&gt;&lt;P&gt;ID_PM25_2017$xDate &amp;lt;- mdy(ID_PM25_2017$xDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;library(arcgisbinding)&lt;BR /&gt;arc.check_product()&lt;BR /&gt;&lt;BR /&gt;arc.write(path = ("E:/D_drive/Pro_Projects/BackgroundConcentrations/BackgroundConcentrations.gdb/ID_PM25_2017"), data = ID_PM25_2017)&lt;/P&gt;&lt;P&gt;-----------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 23:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/why-does-my-date-column-in-data-frame-change-to-a/m-p/769566#M31</guid>
      <dc:creator>SaraStrachan</dc:creator>
      <dc:date>2017-12-04T23:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my date column in data frame change to a double in output from arc.write?</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/why-does-my-date-column-in-data-frame-change-to-a/m-p/769567#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sara,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for the reproducible example. It looks like lubridate converts its date objects into the Date class object, and the bridge isn't currently equipped to read these. For now, you can work around this by making this change on line 5 of your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;ID_PM25_2017$xDate &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;POSIXct&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mdy&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ID_PM25_2017$xDate&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I've posted &lt;A href="https://github.com/R-ArcGIS/r-bridge/issues/20"&gt;an issue on GitHub&lt;/A&gt; to track this, and will update you once we've resolved the underlying issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 16:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/why-does-my-date-column-in-data-frame-change-to-a/m-p/769567#M32</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2017-12-20T16:21:34Z</dc:date>
    </item>
  </channel>
</rss>

