<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>niszet</author_name>
  <author_url>https://blog.hatena.ne.jp/niszet/</author_url>
  <blog_title>niszetの日記</blog_title>
  <blog_url>https://niszet.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>Rでも最頻値は求めることが出来る modelr::typical()を使う。 For numeric vectors, it returns the median. For factors, characters, and logical vectors, it returns the most frequent value. とあるように、数値と文字列・因子・論理型で挙動が異なるので注意。 modelr::typical(c(&quot;a&quot;, &quot;a&quot;, &quot;a&quot;, &quot;b&quot;, &quot;c&quot;)) #&gt; [1] &quot;a&quot; 数値型の場合 modelr::typical(c(1, 1, 2, 3, 4)) #&gt; [1]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fniszet.hatenablog.com%2Fentry%2F2018%2F04%2F19%2F221419&quot; title=&quot;(R) 最頻値を求める - niszetの日記&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>2018-04-19 22:14:19</published>
  <title>(R) 最頻値を求める</title>
  <type>rich</type>
  <url>https://niszet.hatenablog.com/entry/2018/04/19/221419</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
