{"id":1220,"date":"2023-07-27T05:56:29","date_gmt":"2023-07-27T05:56:29","guid":{"rendered":"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/"},"modified":"2023-07-27T05:56:29","modified_gmt":"2023-07-27T05:56:29","slug":"r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/","title":{"rendered":"R \u3067\u30d0\u30ae\u30f3\u30b0\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e<a href=\"https:\/\/statorials.org\/ja\/\u5206\u985e\u6728\u3068\u56de\u5e30\u6728\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30c7\u30b7\u30b8\u30e7\u30f3 \u30c4\u30ea\u30fc<\/a>\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306f\u3001\u5358\u4e00\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u307f\u3092\u4f7f\u7528\u3057\u3066\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u305f\u3060\u3057\u3001\u5358\u4e00\u306e\u6c7a\u5b9a\u6728\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e\u6b20\u70b9\u306f\u3001 <a href=\"https:\/\/statorials.org\/ja\/\u30cf\u3099\u30a4\u30a2\u30b9\u5206\u6563\u306e\u59a5\u5354\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5206\u6563\u304c\u5927\u304d\u304f<\/a>\u306a\u308b\u50be\u5411\u304c\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092 2 \u3064\u306e\u534a\u5206\u306b\u5206\u5272\u3057\u3001\u4e21\u65b9\u306e\u534a\u5206\u306b\u30c7\u30b7\u30b8\u30e7\u30f3 \u30c4\u30ea\u30fc\u3092\u9069\u7528\u3059\u308b\u3068\u3001\u7d50\u679c\u306f\u5927\u304d\u304f\u7570\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5358\u4e00\u306e\u6c7a\u5b9a\u6728\u306e\u5206\u6563\u3092\u6e1b\u3089\u3059\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u65b9\u6cd5\u306e 1 \u3064\u306f<a href=\"https:\/\/statorials.org\/ja\/\u6a5f\u68b0\u5b66\u7fd2\u306e\u30cf\u3099\u30ad\u3099\u30f3\u30af\u3099\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30d0\u30ae\u30f3\u30b0<\/a>\u3068\u3057\u3066\u77e5\u3089\u308c\u3066\u304a\u308a\u3001<em>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u96c6\u8a08<\/em>\u3068\u3082\u547c\u3070\u308c\u307e\u3059\u3002<\/span><\/p>\n<p data-slot-rendered-dynamic=\"true\"><span style=\"color: #000000;\">\u30d0\u30ae\u30f3\u30b0\u306f\u6b21\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong>\u5143\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u304b\u3089<em>b \u500b\u306e<\/em>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7 \u30b5\u30f3\u30d7\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong>\u5404\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7 \u30b5\u30f3\u30d7\u30eb\u306e\u30c7\u30b7\u30b8\u30e7\u30f3 \u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>3.<\/strong>\u5404\u30c4\u30ea\u30fc\u304b\u3089\u306e\u4e88\u6e2c\u3092\u5e73\u5747\u3057\u3066\u3001\u6700\u7d42\u30e2\u30c7\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6570\u767e\u3001\u3055\u3089\u306b\u306f\u6570\u5343\u306e\u500b\u5225\u306e\u30c7\u30b7\u30b8\u30e7\u30f3 \u30c4\u30ea\u30fc\u3092\u69cb\u7bc9\u3057\u3001\u3059\u3079\u3066\u306e\u30c4\u30ea\u30fc\u306e\u5e73\u5747\u4e88\u6e2c\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u591a\u304f\u306e\u5834\u5408\u3001\u5358\u4e00\u306e\u30c7\u30b7\u30b8\u30e7\u30f3 \u30c4\u30ea\u30fc\u3068\u6bd4\u8f03\u3057\u3066\u30c6\u30b9\u30c8 \u30a8\u30e9\u30fc\u7387\u304c\u306f\u308b\u304b\u306b\u4f4e\u3044\u9069\u5408\u30d0\u30c3\u30b0 \u30e2\u30c7\u30eb\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067\u30d0\u30ae\u30f3\u30b0\u3055\u308c\u305f\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u306e\u6bb5\u968e\u7684\u306a\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 1: \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3059\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u307e\u305a\u3001\u3053\u306e\u4f8b\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #993300;\">library<\/span> (dplyr) <span style=\"color: #008080;\">#for data wrangling<\/span>\n<span style=\"color: #993300;\">library<\/span> (e1071) <span style=\"color: #008080;\">#for calculating variable importance<\/span>\n<span style=\"color: #993300;\">library<\/span> (caret) <span style=\"color: #008080;\">#for general model fitting<\/span>\n<span style=\"color: #993300;\">library<\/span> (rpart) <span style=\"color: #008080;\">#for fitting decision trees<\/span>\n<span style=\"color: #993300;\">library<\/span> (ipred) <span style=\"color: #008080;\">#for fitting bagged decision trees\n<\/span><\/strong><\/pre>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 2: \u888b\u8a70\u3081\u3055\u308c\u305f\u30e2\u30c7\u30eb\u3092\u9069\u5408\u3055\u305b\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u3053\u306e\u4f8b\u3067\u306f\u3001153 \u65e5\u306b\u308f\u305f\u308b\u30cb\u30e5\u30fc\u30e8\u30fc\u30af\u5e02\u306e\u5927\u6c17\u8cea\u306e\u6e2c\u5b9a\u5024\u3092\u542b\u3080\u3001 <strong>Air Quality<\/strong>\u3068\u3044\u3046\u7d44\u307f\u8fbc\u307f\u306e R \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#view structure of air quality dataset<\/span>\nstr(airquality)\n\n'data.frame': 153 obs. of 6 variables:\n $ Ozone: int 41 36 12 18 NA 28 23 19 8 NA ...\n $Solar.R: int 190 118 149 313 NA NA 299 99 19 194 ...\n $ Wind: num 7.4 8 12.6 11.5 14.3 14.9 8.6 13.8 20.1 8.6 ...\n $ Temp: int 67 72 74 62 56 66 65 59 61 69 ...\n $Month: int 5 5 5 5 5 5 5 5 5 5 ...\n $Day: int 1 2 3 4 5 6 7 8 9 10 ...\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001 <strong>ipred<\/strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e<strong>Bagging()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066 R \u3067\u30d0\u30ae\u30f3\u30b0\u3055\u308c\u305f\u30e2\u30c7\u30eb\u3092\u9069\u5408\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#make this example reproducible\n<\/span>set.seed(1)\n\n<span style=\"color: #008080;\">#fit the bagged model\n<\/span>bag &lt;- bagging(\n  formula = Ozone ~ .,\n  data = airquality,\n  nbagg = <span style=\"color: #008000;\">150<\/span> ,   \n  coob = <span style=\"color: #008000;\">TRUE<\/span> ,\n  control = rpart. <span style=\"color: #3366ff;\">control<\/span> (minsplit = <span style=\"color: #008000;\">2<\/span> , cp = <span style=\"color: #008000;\">0<\/span> )\n)\n\n<span style=\"color: #008080;\">#display fitted bagged model\n<\/span>bag\n\nBagging regression trees with 150 bootstrap replications \n\nCall: bagging.data.frame(formula = Ozone ~ ., data = airquality, nbagg = 150, \n    coob = TRUE, control = rpart.control(minsplit = 2, cp = 0))\n\nOut-of-bag estimate of root mean squared error: 17.4973<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u30d0\u30ae\u30f3\u30b0\u3055\u308c\u305f\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b<strong>150 \u500b\u306e<\/strong>\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3055\u308c\u305f\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u9078\u629e\u3057\u3001\u63a8\u5b9a\u3055\u308c\u308b out-of-bag \u30a8\u30e9\u30fc\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b<strong>coob<\/strong>\u304c<strong>TRUE<\/strong>\u3067\u3042\u308b\u3053\u3068\u3092\u6307\u5b9a\u3057\u305f\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>rpart.control()<\/strong>\u95a2\u6570\u3067\u306f\u6b21\u306e\u4ed5\u69d8\u3082\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>minsplit = 2:<\/strong>\u3053\u308c\u306f\u3001\u30ce\u30fc\u30c9\u5185\u306e\u5206\u5272\u306b\u5fc5\u8981\u306a\u89b3\u6e2c\u5024\u304c 2 \u3064\u3060\u3051\u3067\u3042\u308b\u3053\u3068\u3092\u30e2\u30c7\u30eb\u306b\u6307\u793a\u3057\u307e\u3059\u3002<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>cp = 0<\/strong> \u3002\u3053\u308c\u306f\u8907\u96d1\u3055\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3067\u3059\u3002\u3053\u308c\u3092 0 \u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u5206\u5272\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u30e2\u30c7\u30eb\u304c\u5168\u4f53\u306e\u9069\u5408\u6027\u3092\u6539\u5584\u3067\u304d\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u57fa\u672c\u7684\u306b\u3001\u3053\u308c\u3089 2 \u3064\u306e\u5f15\u6570\u306b\u3088\u308a\u3001\u500b\u3005\u306e\u30c4\u30ea\u30fc\u304c\u975e\u5e38\u306b\u6df1\u304f\u6210\u9577\u3057\u3001\u5206\u6563\u304c\u9ad8\u304f\u3066\u3082\u30d0\u30a4\u30a2\u30b9\u304c\u4f4e\u3044\u30c4\u30ea\u30fc\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u6b21\u306b\u3001\u30d0\u30ae\u30f3\u30b0\u3092\u9069\u7528\u3059\u308b\u3068\u3001\u30d0\u30a4\u30a2\u30b9\u3092\u4f4e\u304f\u4fdd\u3061\u306a\u304c\u3089\u6700\u7d42\u30e2\u30c7\u30eb\u306e\u5206\u6563\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u30e2\u30c7\u30eb\u306e\u7d50\u679c\u304b\u3089\u3001\u30d0\u30c3\u30b0\u5916\u306e\u63a8\u5b9a RMSE \u306f<strong>17.4973<\/strong>\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u30aa\u30be\u30f3\u306e\u4e88\u6e2c\u5024\u3068\u5b9f\u969b\u306e\u89b3\u6e2c\u5024\u306e\u5dee\u306e\u5e73\u5747\u5024\u3067\u3059\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 3: \u4e88\u6e2c\u5909\u6570\u306e\u91cd\u8981\u6027\u3092\u8996\u899a\u5316\u3059\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u30d0\u30ae\u30f3\u30b0 \u30e2\u30c7\u30eb\u306f\u500b\u3005\u306e\u30c7\u30b7\u30b8\u30e7\u30f3 \u30c4\u30ea\u30fc\u3088\u308a\u3082\u6b63\u78ba\u306a\u4e88\u6e2c\u3092\u63d0\u4f9b\u3059\u308b\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30d5\u30a3\u30c3\u30c6\u30a3\u30f3\u30b0\u3055\u308c\u305f\u30d0\u30ae\u30f3\u30b0 \u30e2\u30c7\u30eb\u306e\u7d50\u679c\u3092\u89e3\u91c8\u3057\u3066\u8996\u899a\u5316\u3059\u308b\u3053\u3068\u306f\u56f0\u96e3\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u305f\u3060\u3057\u3001\u7279\u5b9a\u306e\u4e88\u6e2c\u5b50\u306e\u5206\u5e03\u306b\u3088\u308b RSS (\u6b8b\u5dee\u4e8c\u4e57\u548c) \u306e\u5408\u8a08\u306e\u6e1b\u5c11\u3092\u8a08\u7b97\u3057\u3001\u3059\u3079\u3066\u306e\u30c4\u30ea\u30fc\u306e\u5e73\u5747\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u3067\u3001\u4e88\u6e2c\u5b50\u5909\u6570\u306e\u91cd\u8981\u6027\u3092\u8996\u899a\u5316\u3067\u304d\u307e\u3059\u3002\u5024\u304c\u5927\u304d\u3044\u307b\u3069\u3001\u4e88\u6e2c\u5b50\u306e\u91cd\u8981\u6027\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001<strong>\u30ad\u30e3\u30ec\u30c3\u30c8<\/strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e<strong>varImp()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u9069\u5408\u30d0\u30c3\u30b0 \u30e2\u30c7\u30eb\u306e\u5909\u6570\u91cd\u8981\u5ea6\u30d7\u30ed\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#calculate variable importance\n<\/span>VI &lt;- data.frame(var= <span style=\"color: #3366ff;\">names<\/span> (airquality[,-1]), imp= <span style=\"color: #3366ff;\">varImp<\/span> (bag))\n\n<span style=\"color: #008080;\">#sort variable importance descending\n<\/span>VI_plot &lt;- VI[ <span style=\"color: #3366ff;\">order<\/span> (VI$Overall, decreasing= <span style=\"color: #008000;\">TRUE<\/span> ),]\n\n<span style=\"color: #008080;\">#visualize variable importance with horizontal bar plot\n<\/span>barplot(VI_plot$Overall,\n        names.arg= <span style=\"color: #3366ff;\">rownames<\/span> (VI_plot),\n        horiz= <span style=\"color: #008000;\">TRUE<\/span> ,\n        col=' <span style=\"color: #008000;\">steelblue<\/span> ',\n        xlab=' <span style=\"color: #008000;\">Variable Importance<\/span> ')\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-12115 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/sac1.png\" alt=\"R \u306e\u5909\u6570\u91cd\u8981\u5ea6\u30b0\u30e9\u30d5\" width=\"424\" height=\"392\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\"><strong>Solar.R \u304c<\/strong>\u30e2\u30c7\u30eb\u5185\u3067\u6700\u3082\u91cd\u8981\u306a\u4e88\u6e2c\u5909\u6570\u3067\u3042\u308b\u306e\u306b\u5bfe\u3057\u3001 <strong>Month<\/strong>\u306f\u6700\u3082\u91cd\u8981\u3067\u306f\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 4: \u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u4e88\u6e2c\u3092\u884c\u3046<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u6700\u5f8c\u306b\u3001\u9069\u5408\u30d0\u30c3\u30b0 \u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u65b0\u3057\u3044\u89b3\u6e2c\u5024\u306b\u3064\u3044\u3066\u306e\u4e88\u6e2c\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define new observation\n<\/span>new &lt;- data.frame(Solar.R=150, Wind=8, Temp=70, Month=5, Day=5)\n\n<span style=\"color: #008080;\">#use fitted bagged model to predict Ozone value of new observation\n<\/span>predict(bag, newdata=new)\n\n24.4866666666667\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u4e88\u6e2c\u5909\u6570\u306e\u5024\u306b\u57fa\u3065\u3044\u3066\u3001\u9069\u5408\u30d0\u30c3\u30b0 \u30e2\u30c7\u30eb\u306f\u3001\u3053\u306e\u7279\u5b9a\u306e\u65e5\u306e\u30aa\u30be\u30f3\u5024\u304c<strong>24,487<\/strong>\u306b\u306a\u308b\u3068\u4e88\u6e2c\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u4f8b\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u5b8c\u5168\u306a R \u30b3\u30fc\u30c9\u306f\u3001 <a href=\"https:\/\/github.com\/Statorials\/R-Guides\/blob\/main\/bagging.R\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3053\u306b<\/a>\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u30c7\u30b7\u30b8\u30e7\u30f3 \u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306f\u3001\u5358\u4e00\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0 \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u307f\u3092\u4f7f\u7528\u3057\u3066\u30e2\u30c7\u30eb\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002 \u305f\u3060\u3057\u3001\u5358\u4e00\u306e\u6c7a\u5b9a\u6728\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e\u6b20\u70b9\u306f\u3001 \u5206\u6563\u304c\u5927\u304d\u304f\u306a\u308b\u50be\u5411\u304c\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30c7\u30fc\u30bf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1220","post","type-post","status-publish","format-standard","hentry","category-16"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>R \u3067\u30d0\u30ae\u30f3\u30b0\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7) - Statorials<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u3001R \u3092\u30d0\u30c3\u30b0\u30a4\u30f3\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/ja\/r\u3066\u3099\u888b\u8a70\u3081\u3059\u308b\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R \u3067\u30d0\u30ae\u30f3\u30b0\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7) - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u3001R \u3092\u30d0\u30c3\u30b0\u30a4\u30f3\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ja\/r\u3066\u3099\u888b\u8a70\u3081\u3059\u308b\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T05:56:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/sac1.png\" \/>\n<meta name=\"author\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/\",\"url\":\"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/\",\"name\":\"R \u3067\u30d0\u30ae\u30f3\u30b0\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7) - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ja\/#website\"},\"datePublished\":\"2023-07-27T05:56:29+00:00\",\"dateModified\":\"2023-07-27T05:56:29+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\"},\"description\":\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u3001R \u3092\u30d0\u30c3\u30b0\u30a4\u30f3\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R \u3067\u30d0\u30ae\u30f3\u30b0\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ja\/#website\",\"url\":\"https:\/\/statorials.org\/ja\/\",\"name\":\"Statorials\",\"description\":\"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ja\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\",\"name\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\"},\"description\":\"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b\",\"sameAs\":[\"http:\/\/statorials.org\/ja\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"R \u3067\u30d0\u30ae\u30f3\u30b0\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7) - Statorials","description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u3001R \u3092\u30d0\u30c3\u30b0\u30a4\u30f3\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/ja\/r\u3066\u3099\u888b\u8a70\u3081\u3059\u308b\/","og_locale":"ja_JP","og_type":"article","og_title":"R \u3067\u30d0\u30ae\u30f3\u30b0\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7) - Statorials","og_description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u3001R \u3092\u30d0\u30c3\u30b0\u30a4\u30f3\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/statorials.org\/ja\/r\u3066\u3099\u888b\u8a70\u3081\u3059\u308b\/","og_site_name":"Statorials","article_published_time":"2023-07-27T05:56:29+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/sac1.png"}],"author":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/","url":"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/","name":"R \u3067\u30d0\u30ae\u30f3\u30b0\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7) - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/ja\/#website"},"datePublished":"2023-07-27T05:56:29+00:00","dateModified":"2023-07-27T05:56:29+00:00","author":{"@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83"},"description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3092\u542b\u3081\u3066\u3001R \u3092\u30d0\u30c3\u30b0\u30a4\u30f3\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ja\/r%e3%81%a6%e3%82%99%e8%a2%8b%e8%a9%b0%e3%82%81%e3%81%99%e3%82%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/ja\/"},{"@type":"ListItem","position":2,"name":"R \u3067\u30d0\u30ae\u30f3\u30b0\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ja\/#website","url":"https:\/\/statorials.org\/ja\/","name":"Statorials","description":"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ja\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83","name":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/","url":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb"},"description":"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b","sameAs":["http:\/\/statorials.org\/ja"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/1220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/comments?post=1220"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/1220\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/media?parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/categories?post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/tags?post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}