{"id":3139,"date":"2015-07-15T13:25:44","date_gmt":"2015-07-15T12:25:44","guid":{"rendered":"https:\/\/abcdr.guyader.pro\/?p=3139"},"modified":"2018-04-08T00:02:01","modified_gmt":"2018-04-07T23:02:01","slug":"comment-attribuer-ou-modifier-le-nom-des-differentes-parties-dun-objet-de-type-array","status":"publish","type":"post","link":"https:\/\/thinkr.fr\/abcdr\/comment-attribuer-ou-modifier-le-nom-des-differentes-parties-dun-objet-de-type-array\/","title":{"rendered":"Comment attribuer ou modifier le nom des diff\u00e9rentes parties d\u2019un objet de type array ?"},"content":{"rendered":"<pre><code><br \/>b &lt;- array(c(1:11, NA), c(2,2,3)) \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\n#On cr\u00e9e un objet de type \u00ab\u00a0array\u00a0\u00bb<br \/>\u00a0\n\ndimnames(b)&lt;-list(NULL, NULL, c(\"Temp\",\"Haut\",\"Long\"))\n\n#On attribue un nom aux trois sections de l\u2019array :\u00a0 \"Temp\",\"Haut\" et \"Long\"\n\n<\/code><\/pre>\n<p>\u00a0<\/p>\n<p>On obtient :<\/p>\n<pre><code>\n\n> b\n\n, , Temp\n\n\u00a0\n\n\u00a0\u00a0\u00a0\u00a0 [,1] [,2]\n\n[1,]\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0 3\n\n[2,]\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0 4\n\n\u00a0\n\n, , Haut\n\n\u00a0\n\n\u00a0\u00a0\u00a0\u00a0 [,1] [,2]\n\n[1,]\u00a0\u00a0\u00a0 5\u00a0\u00a0\u00a0 7\n\n[2,]\u00a0\u00a0\u00a0 6\u00a0\u00a0\u00a0 8\n\n\u00a0\n\n, , Long\n\n\u00a0\n\n\u00a0\u00a0\u00a0\u00a0 [,1] [,2]\n\n<p>[1,] \u00a0\u00a0\u00a09\u00a0\u00a0 11<\/p>[2,]\u00a0\u00a0 10\u00a0\u00a0 NA<br \/> <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>b &lt;- array(c(1:11, NA), c(2,2,3)) \u00a0 \u00a0 \u00a0 \u00a0\u00a0 #On cr\u00e9e un objet de type \u00ab\u00a0array\u00a0\u00bb\u00a0 dimnames(b)&lt;-list(NULL, NULL, c(\u00ab\u00a0Temp\u00a0\u00bb,\u00a0\u00bbHaut\u00a0\u00bb,\u00a0\u00bbLong\u00a0\u00bb)) #On attribue un nom aux trois sections de l\u2019array :\u00a0 \u00ab\u00a0Temp\u00a0\u00bb,\u00a0\u00bbHaut\u00a0\u00bb et \u00ab\u00a0Long\u00a0\u00bb \u00a0 On obtient : > b , , Temp \u00a0 \u00a0\u00a0\u00a0\u00a0 [,1] [,2] [1,]\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0 3 [2,]\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0 4 \u00a0 , , Haut \u00a0 \u00a0\u00a0\u00a0\u00a0 [,1] [,2] [1,]\u00a0\u00a0\u00a0 5\u00a0\u00a0\u00a0 7 [2,]\u00a0\u00a0\u00a0 6\u00a0\u00a0\u00a0 8 \u00a0 , , Long \u00a0 \u00a0\u00a0\u00a0\u00a0 [,1] [,2] [1,] \u00a0\u00a0\u00a09\u00a0\u00a0 11[2,]\u00a0\u00a0 10\u00a0\u00a0 NA<a class=\"more-link\" href=\"https:\/\/thinkr.fr\/abcdr\/comment-attribuer-ou-modifier-le-nom-des-differentes-parties-dun-objet-de-type-array\/\">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,23],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-helene","4":"post-3139","6":"format-standard","7":"category-fonctions-utiles","8":"category-transformation-de-donnees"},"acf":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9O7Sx-OD","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/posts\/3139","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=3139"}],"version-history":[{"count":2,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/posts\/3139\/revisions"}],"predecessor-version":[{"id":4276,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/posts\/3139\/revisions\/4276"}],"wp:attachment":[{"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/media?parent=3139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/categories?post=3139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thinkr.fr\/abcdr\/wp-json\/wp\/v2\/tags?post=3139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}