{"id":8950,"date":"2017-03-27T10:15:25","date_gmt":"2017-03-27T01:15:25","guid":{"rendered":"http:\/\/sitest.jp\/blog\/?p=8950"},"modified":"2017-03-27T10:01:42","modified_gmt":"2017-03-27T01:01:42","slug":"%e7%b5%b1%e8%a8%88%e8%a7%a3%e6%9e%90%e3%82%92%e3%81%99%e3%82%8b%e3%81%aa%e3%82%89%e3%81%93%e3%82%8c%ef%bc%81r%e8%a8%80%e8%aa%9e%e5%9f%ba%e7%a4%8e%e5%85%a5%e9%96%80","status":"publish","type":"post","link":"https:\/\/sitest.jp\/blog\/?p=8950","title":{"rendered":"\u7d71\u8a08\u89e3\u6790\u3092\u3059\u308b\u306a\u3089\u3053\u308c\uff01R\u8a00\u8a9e\u57fa\u790e\u5165\u9580"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30d7\u30ed\u30c0\u30af\u30c8\u958b\u767a\u30c1\u30fc\u30e0\u306e\u7267\u3067\u3059\u3002<\/p>\n<p>\u7d71\u8a08\u89e3\u6790\u3084\u30c7\u30fc\u30bf\u30de\u30a4\u30cb\u30f3\u30b0\u306e\u89e3\u6790\u624b\u6bb5\u3068\u3057\u3066\u3001\u4e00\u822c\u7684\u306bPython\u3084R\u8a00\u8a9e\u306a\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u304c\u7528\u3044\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u4fbf\u5229\u3068\u805e\u3044\u3066\u3044\u3066\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u89e6\u308b\u3068\u306a\u308b\u3068\u3001\u3068\u3066\u3082\u96e3\u3057\u304f\u611f\u3058\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u305d\u3093\u306a\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\uff01<\/p>\n<p>\u4eca\u56de\u306f\u7d71\u8a08\u89e3\u6790\u5411\u3051\u306e\u8a00\u8a9e\u3068\u3057\u3066\u958b\u767a\u3055\u308c\u305fR\u8a00\u8a9e\u306b\u3064\u3044\u3066\u3001\u69cb\u6587\u306e\u8aac\u660e\u306a\u3069\u3082\u4ea4\u3048\u306a\u304c\u3089\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">R\u8a00\u8a9e\u3068\u306f<\/h3>\n<\/div>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.googleapis.com\/sitest-wp\/blog\/wp-content\/uploads\/2017\/03\/cran.rstudio-1024x471.png\" alt=\"cran.rstudio\" width=\"604\" height=\"277\" class=\"alignnone size-large wp-image-9061\" \/><br \/>\nR\u8a00\u8a9e\u3068\u306f\u30aa\u30fc\u30af\u30e9\u30f3\u30c9\u5927\u5b66\u3067\u958b\u767a\u3055\u308c\u305f\u3001OSS\u306e\u7d71\u8a08\u89e3\u6790\u5411\u3051\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002<br \/>\n\u67d4\u8edf\u306a\u8a00\u8a9e\u69cb\u6210\u3067\u3042\u308a\u3001\u8907\u96d1\u306a\u8a08\u7b97\u51e6\u7406\u3092\u884c\u3048\u308b\u9ad8\u901f\u306a\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u7fa4\u304c\u5e38\u5099\u3055\u308c\u30b0\u30e9\u30d5\u6a5f\u80fd\u306b\u3088\u308b\u8996\u899a\u5316\u3082\u3067\u304d\u308b\u305f\u3081\u3001\u8a08\u7b97\u7d50\u679c\u3092\u3059\u3050\u306b\u8996\u899a\u5316\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3067\u306f\u7d71\u8a08\u5b66\u306b\u3068\u3069\u307e\u3089\u305a\u3001\u91d1\u878d\u5de5\u5b66\u3084\u6a5f\u68b0\u5b66\u7fd2\u3001\u30c7\u30fc\u30bf\u30de\u30a4\u30cb\u30f3\u30b0\u306a\u3069\u5e45\u5e83\u3044\u5206\u91ce\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nIEEE SPECTRUM\u304c\u767a\u8868\u3057\u305f<a rel=\"nofollow\" target=\"_blank\" href=\"http:\/\/spectrum.ieee.org\/computing\/software\/the-2016-top-programming-languages\">The 2016 Top Programming Languages<\/a>\u3067\u306fR\u8a00\u8a9e\u304c5\u4f4d\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u4eba\u6c17\u306e\u9ad8\u3055\u304c\u4f3a\u3048\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" src=\"https:\/\/storage.googleapis.com\/sitest-wp\/blog\/wp-content\/uploads\/2017\/03\/The_2016_Top_Programming_Languages_-_IEEE_Spectrum.png\" alt=\"The_2016_Top_Programming_Languages_-_IEEE_Spectrum\" width=\"646\" height=\"456\" class=\"alignnone size-full wp-image-9067\" \/><br \/>\n\u5229\u7528\u5834\u9762\u3068\u3057\u3066\u306f\u3001R\u8a00\u8a9e\u3067\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u4f5c\u308aPython\u306a\u3069\u3067\u30b7\u30b9\u30c6\u30e0\u306b\u7d44\u307f\u8fbc\u3080\u4f7f\u3044\u65b9\u304c\u591a\u3044\u3067\u3059\u3002<br \/>\n\u8a66\u3057\u306b\u89e3\u6790\u3057\u3066\u307f\u305f\u3044\u3068\u3044\u3046\u5834\u5408\u306b\u306f\u3082\u3063\u3066\u3053\u3044\u306e\u8a00\u8a9e\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u74b0\u5883\u69cb\u7bc9<\/h3>\n<\/div>\n<p>\u307e\u305a\u306fR\u8a00\u8a9e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n<a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/cran.rstudio.com\/\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u6b21\u306b<a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/www.rstudio.com\/\">R Studio<\/a>\u3068\u547c\u3070\u308c\u308bR\u8a00\u8a9e\u7528\u306eIDE\uff08\u7d71\u5408\u958b\u767a\u74b0\u5883\uff09\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>R\u8a00\u8a9e\u306f\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u3067\u52d5\u304f\u8a00\u8a9e\u3067\u3059\u306e\u3067\u3001R Studio\u3092\u4f7f\u7528\u3057\u306a\u3044\u5834\u5408\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3084\u30bf\u30fc\u30df\u30ca\u30eb\u306a\u3069\u3067\u52d5\u304b\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nR Studio\u3092\u4f7f\u3046\u3053\u3068\u3067GUI\u4e0a\u3067R\u8a00\u8a9e\u3092\u89e6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001<br \/>\n\u4eca\u56de\u306e\u3088\u3046\u306b\u8a66\u3057\u306b\u89e6\u3063\u3066\u307f\u308b\u3068\u304d\u306b\u306f\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u65e9\u901f\u89e6\u3063\u3066\u307f\u308b<\/h3>\n<\/div>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.googleapis.com\/sitest-wp\/blog\/wp-content\/uploads\/2017\/03\/RStudio_initial.png\" alt=\"RStudio_initial\" width=\"1024\" height=\"790\" class=\"alignnone size-full wp-image-9068\" \/><br \/>\nR Studio\u3092\u8d77\u52d5\u3059\u308b\u3068\u4e0a\u8a18\u753b\u50cf\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u5de6\u5074\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3092\u4f7f\u3063\u3066\u8272\u3005\u904a\u3093\u3067\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"r\">\n# \u56db\u5247\u6f14\u7b97\n> (123 + 456 - 234) * 567 \/ 89 # 2197.921\n\n# \u5909\u6570\n> a <- 123\n> a # 123\n> a * 345 # 42435\n\n# \u914d\u5217\n> arr <- c(123, 456, 789)\n> arr # 123 456 789\n\n# \u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u9055\u3044\n# \u914d\u5217\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f1\u304b\u3089\u59cb\u307e\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\n> arr[1] # 123\n\n# \u914d\u5217\u3092\u5165\u308c\u305f\u5909\u6570\u306e\u51e6\u7406\u306f\u914d\u5217\u5168\u4f53\u306b\u9069\u7528\u3055\u308c\u307e\u3059\n> arr * 20 # 2460  9120 15780\n\n# \u95a2\u6570\u306e\u5b9a\u7fa9\u3068\u547c\u3073\u51fa\u3057\n> fn <- function(a, b){\n  return(a * b)\n}\n> fn(2, 4) # 8\n> fn(b=3, a=2) # 6\n\n<\/code><\/pre>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u307e\u3068\u3081<\/h3>\n<\/div>\n<p>\u4eca\u56de\u306fR\u8a00\u8a9e\u306e\u5165\u9580\u7de8\u3068\u3044\u3046\u3053\u3068\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u3001\u4e00\u756a\u57fa\u672c\u7684\u306a\u7c21\u5358\u306a\u69cb\u6587\u307e\u3067\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br \/>\n\u6b21\u56de\u304b\u3089\u306f\u8272\u3005\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5229\u7528\u3057\u3066\u30b0\u30e9\u30d5\u3092\u8868\u793a\u3057\u305f\u308a\u3002Google Analytics \u306e\u30c7\u30fc\u30bf\u3092\u89e3\u6790\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u305c\u3072\u6b21\u56de\u3092\u697d\u3057\u307f\u306b\u304a\u5f85\u3061\u4e0b\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30d7\u30ed\u30c0\u30af\u30c8\u958b\u767a\u30c1\u30fc\u30e0\u306e\u7267\u3067\u3059\u3002 \u7d71\u8a08\u89e3\u6790\u3084\u30c7\u30fc\u30bf\u30de\u30a4\u30cb\u30f3\u30b0\u306e\u89e3\u6790\u624b\u6bb5\u3068\u3057\u3066\u3001\u4e00\u822c\u7684\u306bPython\u3084R\u8a00\u8a9e\u306a\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u304c\u7528\u3044\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002 \u4fbf\u5229\u3068\u805e\u3044\u3066\u3044\u3066\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u89e6\u308b\u3068\u306a\u308b\u3068\u3001\u3068\u3066\u3082\u96e3\u3057\u304f\u611f\u3058\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u305d\u3093\u306a\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\uff01 \u4eca\u56de\u306f\u7d71\u8a08\u89e3\u6790\u5411\u3051\u306e\u8a00\u8a9e\u3068\u3057\u3066\u958b\u767a\u3055\u308c\u305fR\u8a00\u8a9e\u306b\u3064\u3044\u3066\u3001\u69cb\u6587\u306e\u8aac\u660e\u306a\u3069\u3082\u4ea4\u3048\u306a\u304c\u3089\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":9060,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[52,47],"tags":[],"acf":false,"_links":{"self":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/8950"}],"collection":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/comments?post=8950"}],"version-history":[{"count":5,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/8950\/revisions"}],"predecessor-version":[{"id":9070,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/8950\/revisions\/9070"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media\/9060"}],"wp:attachment":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media?parent=8950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/categories?post=8950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/tags?post=8950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}