<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chito_ng</author_name>
  <author_url>https://blog.hatena.ne.jp/chito_ng/</author_url>
  <blog_title>まずは蝋の翼から。</blog_title>
  <blog_url>https://knknkn.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>使い方メモ(ライブラリ)</anon>
  </categories>
  <description>Rでifelse関数を使ったら思った結果が帰ってこなかった。 yes &lt;- as.Date('2018-01-01') no &lt;- '2018-12-31' ifelse(c(TRUE,FALSE), yes, no) # =&gt; [1] &quot;17532&quot; &quot;2018-12-31&quot; yes &lt;- as.factor('hoge') no &lt;- as.POSIXct('2018-01-01') ifelse(c(TRUE,FALSE), yes, no) # =&gt; [1] 1 1514732400 classやattribute情報が失われるのでDateやfactor型は（内部的な）元の値と違う値に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fknknkn.hatenablog.com%2Fentry%2F2019%2F02%2F19%2F170012&quot; title=&quot; ifelse関数が挙動不審なのでdplyr::if_else関数を使う - まずは蝋の翼から。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-19 17:00:12</published>
  <title> ifelse関数が挙動不審なのでdplyr::if_else関数を使う</title>
  <type>rich</type>
  <url>https://knknkn.hatenablog.com/entry/2019/02/19/170012</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
