{"id":513,"date":"2023-07-29T15:53:45","date_gmt":"2023-07-29T15:53:45","guid":{"rendered":"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2023-07-29T15:53:45","modified_gmt":"2023-07-29T15:53:45","slug":"mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Mutate \u3092\u4f7f\u7528\u3057\u3066 r \u3067\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067<strong>mutate()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>R \u306b\u65b0\u3057\u3044\u5909\u6570\u3092\u8ffd\u52a0\u3059\u308b<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u6b21\u306e<strong>dplyr<\/strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>mutate()<\/strong> \u2013 \u65e2\u5b58\u306e\u5909\u6570\u3092\u4fdd\u6301\u3057\u306a\u304c\u3089\u3001\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3057\u307e\u3059<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>transmute()<\/strong> \u2013 \u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u306b\u65b0\u3057\u3044\u5909\u6570\u3092\u8ffd\u52a0\u3057\u3001\u65e2\u5b58\u306e\u5909\u6570\u3092\u524a\u9664\u3057\u307e\u3059<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>mutate_all()<\/strong> \u2013 \u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u5185\u306e\u3059\u3079\u3066\u306e\u5909\u6570\u3092\u4e00\u5ea6\u306b\u5909\u66f4\u3057\u307e\u3059<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>mutate_at()<\/strong> \u2013 \u7279\u5b9a\u306e\u5909\u6570\u3092\u540d\u524d\u3067\u5909\u66f4\u3057\u307e\u3059<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>mutate_if()<\/strong> \u2013 \u7279\u5b9a\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u3059\u3079\u3066\u306e\u5909\u6570\u3092\u5909\u66f4\u3057\u307e\u3059<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u5909\u7570()<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\"><strong>mutate()<\/strong>\u95a2\u6570\u306f\u3001\u65e2\u5b58\u306e\u5909\u6570\u3092\u3059\u3079\u3066\u4fdd\u6301\u3057\u306a\u304c\u3089\u3001\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/span> <span style=\"color: #000000;\">mutate() \u306e\u57fa\u672c\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>data &lt;- <span style=\"color: #800080;\">mutate<\/span> (new_variable = existing_variable\/3)<\/strong><\/pre>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>data:<\/strong>\u65b0\u3057\u3044\u5909\u6570\u3092\u5272\u308a\u5f53\u3066\u308b\u65b0\u3057\u3044\u30c7\u30fc\u30bf \u30d6\u30ed\u30c3\u30af<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>new_variable:<\/strong>\u65b0\u3057\u3044\u5909\u6570\u306e\u540d\u524d<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>existing_variable:<\/strong>\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u5185\u306e\u65e2\u5b58\u306e\u5909\u6570<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001\u65b0\u3057\u3044<em>root_sepal_width<\/em>\u5909\u6570\u3092\u57cb\u3081\u8fbc\u307f<em>iris<\/em>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define data frame as the first six lines of the <em>iris<\/em> dataset<\/span>\ndata &lt;- head(iris)\n\n<span style=\"color: #008080;\">#view data<\/span>\ndata\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width Species\n#1 5.1 3.5 1.4 0.2 setosa\n#2 4.9 3.0 1.4 0.2 setosa\n#3 4.7 3.2 1.3 0.2 setosa\n#4 4.6 3.1 1.5 0.2 setosa\n#5 5.0 3.6 1.4 0.2 setosa\n#6 5.4 3.9 1.7 0.4 setosa\n\n<span style=\"color: #008080;\">#load <em>dplyr<\/em> library<\/span>\n<span style=\"color: #000000;\">library(dplyr)<\/span>\n\n<span style=\"color: #008080;\">#define new column <em>root_sepal_width<\/em> as the square root of the <em>Sepal.Width<\/em> variable<\/span>\ndata %&gt;% <span style=\"color: #800080;\">mutate<\/span> (root_sepal_width = sqrt(Sepal.Width))\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width Species root_sepal_width\n#1 5.1 3.5 1.4 0.2 setosa 1.870829\n#2 4.9 3.0 1.4 0.2 setosa 1.732051\n#3 4.7 3.2 1.3 0.2 setosa 1.788854\n#4 4.6 3.1 1.5 0.2 setosa 1.760682\n#5 5.0 3.6 1.4 0.2 setosa 1.897367\n#6 5.4 3.9 1.7 0.4 setosa 1.974842\n<\/strong><\/pre>\n<h2><span style=\"color: #000000;\"><strong>\u5909\u63db()<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\"><strong>transmute()<\/strong>\u95a2\u6570\u306f\u3001\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3057\u3001\u65e2\u5b58\u306e\u5909\u6570\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u30012 \u3064\u306e\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u8ffd\u52a0\u3057\u3001\u65e2\u5b58\u306e\u5909\u6570\u3092\u3059\u3079\u3066\u524a\u9664\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define data frame as the first six lines of the <em>iris<\/em> dataset\n<\/span>data &lt;- head(iris)\n\n<span style=\"color: #008080;\">#viewdata\n<\/span>data\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width Species\n#1 5.1 3.5 1.4 0.2 setosa\n#2 4.9 3.0 1.4 0.2 setosa\n#3 4.7 3.2 1.3 0.2 setosa\n#4 4.6 3.1 1.5 0.2 setosa\n#5 5.0 3.6 1.4 0.2 setosa\n#6 5.4 3.9 1.7 0.4 setosa\n\n<span style=\"color: #008080;\">#define two new variables and remove all existing variables\n<\/span>data %&gt;% <span style=\"color: #800080;\">transmute<\/span> (root_sepal_width = sqrt(Sepal.Width),\n                   root_petal_width = sqrt(Petal.Width))\n\n# root_sepal_width root_petal_width\n#1 1.870829 0.4472136\n#2 1.732051 0.4472136\n#3 1.788854 0.4472136\n#4 1.760682 0.4472136\n#5 1.897367 0.4472136\n#6 1.974842 0.6324555\n<\/strong><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>mutate_all()<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\"><strong>mutate_all()<\/strong>\u95a2\u6570\u306f\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u5185\u306e\u3059\u3079\u3066\u306e\u5909\u6570\u3092\u4e00\u5ea6\u306b\u5909\u66f4\u3059\u308b\u305f\u3081\u3001 <strong>funs()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3059\u3079\u3066\u306e\u5909\u6570\u306b\u5bfe\u3057\u3066\u7279\u5b9a\u306e\u95a2\u6570\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001 <strong>mutate_all()<\/strong>\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u5185\u306e\u3059\u3079\u3066\u306e\u5217\u3092 10 \u3067\u9664\u7b97\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define new data frame as the first six rows of <em>iris<\/em> without the <em>Species<\/em> variable<\/span>\ndata2 &lt;- head(iris) %&gt;% select(-Species)\n\n<span style=\"color: #008080;\">#view the new data frame<\/span>\ndata2\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width\n#1 5.1 3.5 1.4 0.2\n#2 4.9 3.0 1.4 0.2\n#3 4.7 3.2 1.3 0.2\n#4 4.6 3.1 1.5 0.2\n#5 5.0 3.6 1.4 0.2\n#6 5.4 3.9 1.7 0.4\n\n<span style=\"color: #008080;\">#divide all variables in the data frame by 10\n<\/span>data2 %&gt;% <span style=\"color: #800080;\">mutate_all<\/span> (funs(.\/10))\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width\n#1 0.51 0.35 0.14 0.02\n#2 0.49 0.30 0.14 0.02\n#3 0.47 0.32 0.13 0.02\n#4 0.46 0.31 0.15 0.02\n#5 0.50 0.36 0.14 0.02\n#6 0.54 0.39 0.17 0.04\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u53e4\u3044\u5909\u6570\u540d\u306b\u8ffd\u52a0\u3059\u308b\u65b0\u3057\u3044\u540d\u524d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u306e\u5909\u6570\u3092\u8ffd\u52a0\u3067\u304d\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>data2 %&gt;% <span style=\"color: #800080;\">mutate_all<\/span> (funs(mod = .\/10))\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width Sepal.Length_mod\n#1 5.1 3.5 1.4 0.2 0.51\n#2 4.9 3.0 1.4 0.2 0.49\n#3 4.7 3.2 1.3 0.2 0.47\n#4 4.6 3.1 1.5 0.2 0.46\n#5 5.0 3.6 1.4 0.2 0.50\n#6 5.4 3.9 1.7 0.4 0.54\n# Sepal.Width_mod Petal.Length_mod Petal.Width_mod\n#1 0.35 0.14 0.02\n#2 0.30 0.14 0.02\n#3 0.32 0.13 0.02\n#4 0.31 0.15 0.02\n#5 0.36 0.14 0.02\n#6 0.39 0.17 0.04\n<\/strong><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>mutate_at()<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\"><strong>mutate_at()<\/strong>\u95a2\u6570\u306f\u3001\u7279\u5b9a\u306e\u5909\u6570\u3092\u540d\u524d\u3067\u5909\u66f4\u3057\u307e\u3059\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001 <strong>mutate_at()<\/strong>\u3092\u4f7f\u7528\u3057\u3066 2 \u3064\u306e\u7279\u5b9a\u306e\u5909\u6570\u3092 10 \u3067\u5272\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>data2 %&gt;% <span style=\"color: #800080;\">mutate_at<\/span> (c(\"Sepal.Length\", \"Sepal.Width\"), funs(mod = .\/10))\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width Sepal.Length_mod\n#1 5.1 3.5 1.4 0.2 0.51\n#2 4.9 3.0 1.4 0.2 0.49\n#3 4.7 3.2 1.3 0.2 0.47\n#4 4.6 3.1 1.5 0.2 0.46\n#5 5.0 3.6 1.4 0.2 0.50\n#6 5.4 3.9 1.7 0.4 0.54\n# Sepal.Width_mod\n#1 0.35\n#2 0.30\n#3 0.32\n#4 0.31\n#5 0.36\n#6 0.39<\/strong><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>mutate_if()<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\"><strong>mutate_if()<\/strong>\u95a2\u6570\u306f\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u3059\u3079\u3066\u306e\u5909\u6570\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001 <strong>mutate_if()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u8981\u56e0<em>\u578b<\/em>\u306e\u5909\u6570\u3092\u6587\u5b57<em>\u578b<\/em>\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#find variable type of each variable in a data frame<\/span>\ndata &lt;- head(iris)\nsapply(data, class)\n\n#Sepal.Length Sepal.Width Petal.Length Petal.Width Species \n# \"numeric\" \"numeric\" \"numeric\" \"numeric\" \"factor\" \n\n<span style=\"color: #008080;\">#convert any variable of type <em>factor<\/em> to type <em>character<\/em><\/span>\nnew_data &lt;- data %&gt;% mutate_if(is.factor, as.character)\nsapply(new_data, class)\n\n#Sepal.Length Sepal.Width Petal.Length Petal.Width Species \n# \"numeric\" \"numeric\" \"numeric\" \"numeric\" \"character\"<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001 <strong>mutate_if()<\/strong>\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3059\u3079\u3066\u306e<em>\u6570\u5024<\/em>\u5909\u6570\u3092\u5c0f\u6570\u70b9\u7b2c 1 \u4f4d\u306b\u56db\u6368\u4e94\u5165\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define data as first six rows of <em>iris<\/em> dataset<\/span>\ndata &lt;- head(iris)\n\n<span style=\"color: #008080;\">#view data<\/span>\ndata\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width Species\n#1 5.1 3.5 1.4 0.2 setosa\n#2 4.9 3.0 1.4 0.2 setosa\n#3 4.7 3.2 1.3 0.2 setosa\n#4 4.6 3.1 1.5 0.2 setosa\n#5 5.0 3.6 1.4 0.2 setosa\n#6 5.4 3.9 1.7 0.4 setosa\n\n<span style=\"color: #008080;\">#round any variables of type <em>numeric<\/em> to one decimal place<\/span>\ndata %&gt;% mutate_if(is.numeric, round, digits = 0)\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width Species\n#1 5 4 1 0 setosa\n#2 5 3 1 0 setosa\n#3 5 3 1 0 setosa\n#4 5 3 2 0 setosa\n#5 5 4 1 0 setosa\n#6 5 4 2 0 setosa\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\"><strong>\u53c2\u8003\u6587\u732e\uff1a<br \/> <a href=\"https:\/\/statorials.org\/ja\/rapply-sapply\u3068tapply\u3092\u9069\u7528\u3059\u308b\u305f\u3081\u306e\u30ab\u3099\u30a4\u30c8\u3099\/\" target=\"_blank\" rel=\"noopener noreferrer\">R \u306e apply()\u3001lapply()\u3001sapply()\u3001tapply() \u306e\u30ac\u30a4\u30c9<\/a><br \/><a href=\"https:\/\/statorials.org\/ja\/\u884c\u3092\u6574\u7406\u3059\u308b\/\" target=\"_blank\" rel=\"noopener noreferrer\">R\u3067\u7dda\u3092\u914d\u7f6e\u3059\u308b\u65b9\u6cd5<\/a><br \/><a href=\"https:\/\/statorials.org\/ja\/\u884c\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30af\u3099\u3059\u308b-r\/\" target=\"_blank\" rel=\"noopener noreferrer\">R \u3067\u884c\u3092\u30d5\u30a3\u30eb\u30bf\u30fc\u3059\u308b\u65b9\u6cd5<\/a><br \/><\/strong><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u3067mutate()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 R \u306b\u65b0\u3057\u3044\u5909\u6570\u3092\u8ffd\u52a0\u3059\u308b \u6b21\u306edplyr\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0 [&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-513","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>Mutate \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u306e mutate \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\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\/mutate-\u3092\u4f7f\u7528\u3057\u3066-r-\u306b\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mutate \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u306e mutate \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ja\/mutate-\u3092\u4f7f\u7528\u3057\u3066-r-\u306b\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T15:53:45+00:00\" \/>\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=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"Mutate \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ja\/#website\"},\"datePublished\":\"2023-07-29T15:53:45+00:00\",\"dateModified\":\"2023-07-29T15:53:45+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\"},\"description\":\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u306e mutate \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mutate \u3092\u4f7f\u7528\u3057\u3066 r \u3067\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\"}]},{\"@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":"Mutate \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08","description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u306e mutate \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\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\/mutate-\u3092\u4f7f\u7528\u3057\u3066-r-\u306b\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Mutate \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08","og_description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u306e mutate \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/statorials.org\/ja\/mutate-\u3092\u4f7f\u7528\u3057\u3066-r-\u306b\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Statorials","article_published_time":"2023-07-29T15:53:45+00:00","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":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"Mutate \u3092\u4f7f\u7528\u3057\u3066 R \u3067\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - \u7d71\u8a08","isPartOf":{"@id":"https:\/\/statorials.org\/ja\/#website"},"datePublished":"2023-07-29T15:53:45+00:00","dateModified":"2023-07-29T15:53:45+00:00","author":{"@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83"},"description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001R \u306e mutate \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u5909\u6570\u3092\u30c7\u30fc\u30bf \u30d5\u30ec\u30fc\u30e0\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ja\/mutate-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6-r-%e3%81%ab%e6%96%b0%e3%81%97%e3%81%84%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/ja\/"},{"@type":"ListItem","position":2,"name":"Mutate \u3092\u4f7f\u7528\u3057\u3066 r \u3067\u65b0\u3057\u3044\u5909\u6570\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"}]},{"@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\/513","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=513"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/513\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/media?parent=513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/categories?post=513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/tags?post=513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}