{"id":119686,"date":"2024-03-23T19:32:43","date_gmt":"2024-03-23T10:32:43","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2024-04-05T22:10:55","modified_gmt":"2024-04-05T13:10:55","slug":"r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"R\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u5728R\u8bed\u8a00\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528group_by()\u51fd\u6570\u5c06\u6570\u636e\u5206\u7ec4\u3002<\/p>\n<p>dplyr\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002group_by()\u95a2\u6570\u306fdplyr\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u95a2\u6570\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-comment\"># \u52a0\u8f7ddplyr\u5305<\/span>\r\nlibrary<span class=\"hljs-punctuation\">(<\/span>dplyr<span class=\"hljs-punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u7d9a\u3044\u3066\u3001group_by()\u95a2\u6570\u3092\u4f7f\u3063\u3066\u6307\u5b9a\u3057\u305f\u5909\u6570\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5206\u3051\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u300cSpecies\u300d\u5909\u6570\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-comment\"># \u5206\u7ec4<\/span>\r\ngrouped_data <span class=\"hljs-operator\">&lt;-<\/span> iris <span class=\"hljs-operator\">%&gt;%<\/span> group_by<span class=\"hljs-punctuation\">(<\/span>Species<span class=\"hljs-punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>iris\u306f\u5185\u8535\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u3001\u30a2\u30a4\u30ea\u30b9\u306e\u6e2c\u5b9a\u5024\u3092\u542b\u307f\u307e\u3059\u3002group_by(Species)\u3067\u300cSpecies\u300d\u5909\u6570\u3067\u30c7\u30fc\u30bf\u5206\u3051\u304c\u3055\u308c\u3001\u7d50\u679c\u304cgrouped_data\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u305f\u30c7\u30fc\u30bf\u306f\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u3068\u5206\u6790\u3092\u3055\u3089\u306b\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u5404\u30b0\u30eb\u30fc\u30d7\u306b\u5bfe\u3057\u3066\u7d71\u8a08\u5206\u6790\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u3001summarize() \u95a2\u6570\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-comment\"># \u7edf\u8ba1\u6bcf\u4e2a\u5206\u7ec4\u7684\u5e73\u5747\u503c<\/span>\r\nsummary_data <span class=\"hljs-operator\">&lt;-<\/span> grouped_data <span class=\"hljs-operator\">%&gt;%<\/span> summarize<span class=\"hljs-punctuation\">(<\/span>mean<span class=\"hljs-punctuation\">(<\/span>Sepal.Length<span class=\"hljs-punctuation\">)<\/span><span class=\"hljs-punctuation\">)<\/span>\r\n<\/code><\/pre>\n<p>\u793a\u3057\u305f\u4f8b\u3067\u306f\u3001\u5404\u30b0\u30eb\u30fc\u30d7\u306e\u300cSepal.Length\u300d\u306e\u5e73\u5747\u5024\u3092summarize()\u95a2\u6570\u3092\u4f7f\u3063\u3066\u8a08\u7b97\u3057\u3001\u305d\u306e\u7d50\u679c\u304csummary_data\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u624b\u9806\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u306e\u5909\u6570\u3067\u30b0\u30eb\u30fc\u30d7\u5206\u3051\u3057\u3001\u5404\u30b0\u30eb\u30fc\u30d7\u3054\u3068\u306b\u7d71\u8a08\u5206\u6790\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728R\u8bed\u8a00\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528group_by()\u51fd\u6570\u5c06\u6570\u636e\u5206\u7ec4\u3002 dplyr\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002group_by()\u95a2\u6570\u306fdplyr\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u95a2\u6570\u3067\u3059\u3002 # \u52a0\u8f7ddplyr\u5305 library(dplyr) \u7d9a\u3044 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-119686","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>R\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/r\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\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=\"R\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u5728R\u8bed\u8a00\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528group_by()\u51fd\u6570\u5c06\u6570\u636e\u5206\u7ec4\u3002 dplyr\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002group_by()\u95a2\u6570\u306fdplyr\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u95a2\u6570\u3067\u3059\u3002 # \u52a0\u8f7ddplyr\u5305 library(dplyr) \u7d9a\u3044 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/r\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-23T10:32:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-05T13:10:55+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\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=\"\u967d, \u5411\u5b87\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"R\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-23T10:32:43+00:00\",\"dateModified\":\"2024-04-05T13:10:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"R\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/ja\/blog\/r\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"R\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5","og_description":"\u5728R\u8bed\u8a00\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528group_by()\u51fd\u6570\u5c06\u6570\u636e\u5206\u7ec4\u3002 dplyr\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002group_by()\u95a2\u6570\u306fdplyr\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u95a2\u6570\u3067\u3059\u3002 # \u52a0\u8f7ddplyr\u5305 library(dplyr) \u7d9a\u3044 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/r\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-23T10:32:43+00:00","article_modified_time":"2024-04-05T13:10:55+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"R\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-23T10:32:43+00:00","dateModified":"2024-04-05T13:10:55+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"R\u3067\u30c7\u30fc\u30bf\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/r%e3%81%a7%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e3%82%b0%e3%83%ab%e3%83%bc%e3%83%97%e5%8c%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/119686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=119686"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/119686\/revisions"}],"predecessor-version":[{"id":324292,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/119686\/revisions\/324292"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=119686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=119686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=119686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}