{"title":"(R) \u6700\u983b\u5024\u3092\u6c42\u3081\u308b","width":"100%","type":"rich","url":"https://niszet.hatenablog.com/entry/2018/04/19/221419","image_url":null,"published":"2018-04-19 22:14:19","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fniszet.hatenablog.com%2Fentry%2F2018%2F04%2F19%2F221419\" title=\"(R) \u6700\u983b\u5024\u3092\u6c42\u3081\u308b - niszet\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://niszet.hatenablog.com/","version":"1.0","author_url":"https://blog.hatena.ne.jp/niszet/","blog_title":"niszet\u306e\u65e5\u8a18","author_name":"niszet","provider_name":"Hatena Blog","categories":["R"],"description":"R\u3067\u3082\u6700\u983b\u5024\u306f\u6c42\u3081\u308b\u3053\u3068\u304c\u51fa\u6765\u308b modelr::typical()\u3092\u4f7f\u3046\u3002 For numeric vectors, it returns the median. For factors, characters, and logical vectors, it returns the most frequent value. \u3068\u3042\u308b\u3088\u3046\u306b\u3001\u6570\u5024\u3068\u6587\u5b57\u5217\u30fb\u56e0\u5b50\u30fb\u8ad6\u7406\u578b\u3067\u6319\u52d5\u304c\u7570\u306a\u308b\u306e\u3067\u6ce8\u610f\u3002 modelr::typical(c(\"a\", \"a\", \"a\", \"b\", \"c\")) #> [1] \"a\" \u6570\u5024\u578b\u306e\u5834\u5408 modelr::typical(c(1, 1, 2, 3, 4)) #> [1]\u2026","provider_url":"https://hatena.blog"}