<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>indenkun</author_name>
  <author_url>https://blog.hatena.ne.jp/indenkun/</author_url>
  <blog_title>備忘ログ</blog_title>
  <blog_url>https://indenkun.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>Rでデータ分析をする際に、三項演算子的な処理を行いたい時に{base}のifelse()関数や{dplyr}パッケージのif_else()、もっと複雑な条件分岐をするときにはcase_when()関数を使うことがある。これらの関数を使っている時に意図しない、結果にも反映されない謎のwarningメッセージがでることがある（場合によっては謎のerrorで処理がストップする）。この謎のwarningメッセージはどいうもので、どういう原因で出てくるのかを、特にifelse()の内部処理を追いかけながら見ていく。謎warningメッセージと書いたが、実質仕様なので仕組みが分かれば謎ではなくなる。 まず…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Findenkun.hatenablog.com%2Fentry%2F2024%2F03%2F02%2F000000&quot; title=&quot;Rの三項演算子的関数であるifelse()関数（と{dplyr}のif_else()、case_when()関数）で出る謎のwarningメッセージについて - 備忘ログ&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>2024-03-02 00:00:00</published>
  <title>Rの三項演算子的関数であるifelse()関数（と{dplyr}のif_else()、case_when()関数）で出る謎のwarningメッセージについて</title>
  <type>rich</type>
  <url>https://indenkun.hatenablog.com/entry/2024/03/02/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
