{"provider_name":"Hatena Blog","description":"\u3069\u3046\u3084\u308b\u306e\u304b\u3061\u3087\u3063\u3068\u60a9\u3093\u3060\u306e\u3067\u30e1\u30e2\u3002 \u4ea4\u5dee\u9805 \u5207\u7247\u3092\u9664\u304f \u3082\u3063\u3068\u591a\u6570\u306e\u5834\u5408 \u7559\u610f\u70b9 \uff12\u4e57\u9805 \u4ea4\u5dee\u9805 \u4ea4\u5dee\u9805\u7b49\u3092\u4f5c\u308a\u305f\u3044\u3068\u304d\u306fmodel.matrix()\u3092\u4f7f\u3046\u3068\u3044\u3044\u3088\u3046\u3067\u3059\u3002 object\u5f15\u6570\u306bformula\u3092\u6307\u5b9a\u3057\u3066\uff0c\u5909\u6570\u540d\u3092*\u3067\u304b\u3051\u5408\u308f\u305b\u3066\u4ea4\u5dee\u9805\u3092\u4f5c\u308a\u307e\u3059\u3002 library(tidyverse) model.matrix(object = ~ Sepal.Length * Sepal.Width, data = iris) %>% head() ## (Intercept) Sepal.Length Sepal.Width Sepal.Length:Sepal.Width ## 1 1 5\u2026","height":"190","provider_url":"https://hatena.blog","type":"rich","url":"https://nigimitama.hatenablog.jp/entry/2019/02/09/050808","blog_title":"\u76c6\u6697\u306e\u5b66\u7fd2\u8a18\u9332","published":"2019-02-09 05:08:08","blog_url":"https://nigimitama.hatenablog.jp/","title":"\uff3bR\uff3d\u4ea4\u5dee\u9805\u3084\uff12\u4e57\u9805\u3092\u4f5c\u308b","author_name":"nigimitama","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnigimitama.hatenablog.jp%2Fentry%2F2019%2F02%2F09%2F050808\" title=\"\uff3bR\uff3d\u4ea4\u5dee\u9805\u3084\uff12\u4e57\u9805\u3092\u4f5c\u308b - \u76c6\u6697\u306e\u5b66\u7fd2\u8a18\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","width":"100%","author_url":"https://blog.hatena.ne.jp/nigimitama/","categories":["R"],"image_url":null}