<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtiit</author_name>
  <author_url>https://blog.hatena.ne.jp/mtiit/</author_url>
  <blog_title>(O+P)ut</blog_title>
  <blog_url>https://www.mtioutput.com/</blog_url>
  <categories>
    <anon>Rlang</anon>
  </categories>
  <description>事象 特定のデータにてmin関数、max関数、range関数などが正しく機能しない 数値が入った変数hogeにて最大値が10以上であるに関わらず以下のように出力される。 &gt; range(hoge) [1] &quot;0&quot; &quot;9.99993895163879&quot; 原因/解決策 変数hogeが文字列として扱われている &gt; mode(hoge) [1] &quot;character&quot;as.numericをかませれば解決 &gt; max(as.numeric(hoge)) [1] 17.84708以下、補足です。 補足 R言語では型をよしなに扱ってくれるケースがあり、例えば文字列が格納されているデータもplot関数に入れる…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mtioutput.com%2Fentry%2F2019%2F04%2F25%2F000000&quot; title=&quot;【R言語】min/max/range関数で値が正しく取得できない - (O+P)ut&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mtiit/20181110/20181110103332.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-25 00:00:00</published>
  <title>【R言語】min/max/range関数で値が正しく取得できない</title>
  <type>rich</type>
  <url>https://www.mtioutput.com/entry/2019/04/25/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
