{"id":3097,"date":"2015-07-09T13:21:16","date_gmt":"2015-07-09T12:21:16","guid":{"rendered":"https:\/\/abcdr.guyader.pro\/?p=3097"},"modified":"2018-04-08T00:01:46","modified_gmt":"2018-04-07T23:01:46","slug":"comment-coller-des-colonnes-ou-des-lignes-pour-obtenir-un-data-frame-cbind-data-frame-rbind-data-frame","status":"publish","type":"post","link":"https:\/\/thinkr.fr\/abcdr\/comment-coller-des-colonnes-ou-des-lignes-pour-obtenir-un-data-frame-cbind-data-frame-rbind-data-frame\/","title":{"rendered":"Comment coller des colonnes ou des lignes pour obtenir un data.frame ? : cbind.data.frame, rbind.data.frame"},"content":{"rendered":"<p>La fonction <strong>cbind.data.frame()<\/strong> permet de coller des colonnes et d\u2019obtenir un data.frame.<\/p>\n<pre><code><br \/>sechage &lt;- factor(c(rep(\"lent\",5),rep(\"rapide\",5)))\n\nmarque &lt;- factor(c(rep(\"Mer\",3),rep(\"Cim\",3),rep(\"vex\",4)))\n\n#On cr\u00e9e deux facteurs que l'on souhaite coller\n\n<br \/>ciment &lt;- cbind.data.frame(sechage, marque) #On colle ces deux facteurs\n\n<\/code><\/pre>\n<p>De la m\u00eame mani\u00e8re, la fonction <strong>rbind.data.frame()<\/strong> permet de coller des lignes et d\u2019obtenir un data.frame<\/p>\n","protected":false},"excerpt":{"rendered":"<p>La fonction cbind.data.frame() permet de coller des colonnes et d\u2019obtenir un data.frame. sechage &lt;- factor(c(rep(\u00ab\u00a0lent\u00a0\u00bb,5),rep(\u00ab\u00a0rapide\u00a0\u00bb,5))) marque &lt;- factor(c(rep(\u00ab\u00a0Mer\u00a0\u00bb,3),rep(\u00ab\u00a0Cim\u00a0\u00bb,3),rep(\u00ab\u00a0vex\u00a0\u00bb,4))) #On cr\u00e9e deux facteurs que l&rsquo;on souhaite coller ciment &lt;- cbind.data.frame(sechage, marque) #On colle ces deux facteurs De la m\u00eame mani\u00e8re, la fonction rbind.data.frame() permet de coller des lignes et d\u2019obtenir un data.frame<a class=\"more-link\" href=\"https:\/\/thinkr.fr\/abcdr\/comment-coller-des-colonnes-ou-des-lignes-pour-obtenir-un-data-frame-cbind-data-frame-rbind-data-frame\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"twitter_399453572_399453572":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,12],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-helene","4":"post-3097","6":"format-standard","7":"category-fonctions-utiles","8":"category-manipulation-de-donnees"},"acf":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9O7Sx-NX","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/posts\/3097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/comments?post=3097"}],"version-history":[{"count":2,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/posts\/3097\/revisions"}],"predecessor-version":[{"id":4265,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/posts\/3097\/revisions\/4265"}],"wp:attachment":[{"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/media?parent=3097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/categories?post=3097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/tags?post=3097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}