{"id":3020,"date":"2023-07-19T14:52:35","date_gmt":"2023-07-19T14:52:35","guid":{"rendered":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/"},"modified":"2023-07-19T14:52:35","modified_gmt":"2023-07-19T14:52:35","slug":"r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/","title":{"rendered":"\u5b8c\u6574\u6307\u5357\uff1a\u5982\u4f55\u5728 r \u4e2d\u4f7f\u7528 sort()\u3001order() \u548c rank()"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><span style=\"color: #000000;\">\u4eba\u4eec\u7ecf\u5e38\u6df7\u6dc6\u7684 R \u7684\u4e09\u4e2a\u51fd\u6570\u662f<strong>\u6392\u5e8f<\/strong>\u3001<strong>\u6392\u5e8f<\/strong>\u548c<strong>\u6392\u540d<\/strong>\u3002<\/span><\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u662f\u8fd9\u4e9b\u51fd\u6570\u4e4b\u95f4\u7684\u533a\u522b\uff1a<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>sort()<\/strong>\u5c06\u6309\u5347\u5e8f\u5bf9\u5411\u91cf\u8fdb\u884c\u6392\u5e8f<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>order()<\/strong>\u5c06\u6309\u6392\u5e8f\u987a\u5e8f\u8fd4\u56de\u5411\u91cf\u7684\u6bcf\u4e2a\u5143\u7d20\u7684\u7d22\u5f15<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>Rank()<\/strong>\u5c06\u4e3a\u5411\u91cf\u7684\u6bcf\u4e2a\u5143\u7d20\u5206\u914d\u4e00\u4e2a\u6392\u540d\uff08\u6700\u5c0f = 1\uff09<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u5728\u5b9e\u8df5\u4e2d\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u793a\u4f8b\uff1a\u5bf9\u5411\u91cf\u4f7f\u7528 sort()\u3001order() \u548c Rank()<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u4ee3\u7801\u6f14\u793a\u5982\u4f55\u5bf9\u56db\u503c\u5411\u91cf\u4f7f\u7528<strong>sort()<\/strong> \u3001 <strong>order()<\/strong>\u548c<strong>Rank()<\/strong>\u51fd\u6570\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#createvector\n<\/span>x &lt;- c(0, 20, 10, 15)\n\n<span style=\"color: #008080;\">#sort vector\n<\/span>sort(s)\n\n[1] 0 10 15 20\n\n<span style=\"color: #008080;\">#order vector\n<\/span>order(s)\n\n[1] 1 3 4 2\n\n<span style=\"color: #008080;\">#rank vector\n<\/span>rank(x)\n\n[1] 1 4 2 3\n<\/span><\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u662f\u6bcf\u4e2a\u51fd\u6570\u7684\u4f5c\u7528\uff1a<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong> <strong>sort()<\/strong>\u51fd\u6570\u53ea\u662f\u5c06\u5411\u91cf\u503c\u6309\u5347\u5e8f\u6392\u5e8f\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong> <strong>order()<\/strong>\u51fd\u6570\u6309\u6392\u5e8f\u987a\u5e8f\u8fd4\u56de\u6bcf\u4e2a\u5143\u7d20\u7684\u7d22\u5f15\u3002<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u5982\u679c\u4f60\u6839\u636e\u8fd9\u4e9b\u7d22\u5f15\u503c\u5bf9\u539f\u59cb\u5411\u91cf\u503c\u8fdb\u884c\u6392\u5e8f\uff0c\u4f60\u5c06\u5f97\u5230\u4e00\u4e2a\u6392\u5e8f\u5411\u91cf\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u4f8b\u5982\uff0corder() \u544a\u8bc9\u6211\u4eec\u9996\u5148\u5c06\u503c\u653e\u5728\u7d22\u5f15\u4f4d\u7f6e<strong>1<\/strong>\u5904\u2014\u2014\u5b83\u5728\u539f\u59cb\u5411\u91cf\u4e2d\u662f 0\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u7136\u540e order() \u544a\u8bc9\u6211\u4eec\u5c06\u503c\u653e\u5728\u7d22\u5f15\u4f4d\u7f6e<strong>3<\/strong>\u5904\u2014\u2014\u5373\u539f\u59cb\u5411\u91cf\u4e2d\u7684 10\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u7136\u540e order() \u544a\u8bc9\u6211\u4eec\u5c06\u503c\u653e\u5728\u7d22\u5f15\u4f4d\u7f6e<strong>4<\/strong>\u5904\u2014\u2014\u5373\u539f\u59cb\u5411\u91cf\u4e2d\u7684 15\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u7136\u540e order() \u544a\u8bc9\u6211\u4eec\u5c06\u503c\u653e\u5728\u7d22\u5f15\u4f4d\u7f6e<strong>2<\/strong>\u5904\u2014\u2014\u5373\u539f\u59cb\u5411\u91cf\u4e2d\u7684 20\u3002<\/span><\/li>\n<li><span style=\"color: #000000;\">\u6700\u7ec8\u7ed3\u679c\u662f\u4e00\u4e2a\u6392\u5e8f\u5411\u91cf \u2013 0, 10, 15, 20\u3002<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\"><strong>3.<\/strong> <strong>Rank()<\/strong>\u51fd\u6570\u4e3a\u5411\u91cf\u7684\u6bcf\u4e2a\u5143\u7d20\u5206\u914d\u4e00\u4e2a\u7b49\u7ea7\uff0c\u4f7f\u7528 1 \u8868\u793a\u6700\u5c0f\u503c\u3002<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u4f8b\u5982\uff0cRank() \u544a\u8bc9\u6211\u4eec\u539f\u59cb\u5411\u91cf\u7684\u7b2c\u4e00\u4e2a\u503c\u662f\u6700\u5c0f\u7684\uff08rank = 1\uff09\uff0c\u800c\u539f\u59cb\u5411\u91cf\u7684\u7b2c\u4e8c\u4e2a\u503c\u662f\u6700\u5927\u7684\uff08rank = 4\uff09\u3002<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u8bf7\u6ce8\u610f\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u8bed\u6cd5\u4ee5\u76f8\u53cd\u7684\u987a\u5e8f\u4f7f\u7528<strong>sort()<\/strong> \u3001 <strong>order()<\/strong>\u548c<strong>rank()<\/strong> \uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#createvector\n<\/span>x &lt;- c(0, 20, 10, 15)\n\n<span style=\"color: #008080;\">#sort vector in decreasing order\n<\/span>sort(x, decreasing= <span style=\"color: #008000;\">TRUE<\/span> )\n\n[1] 20 15 10 0\n\n<span style=\"color: #008080;\">#order vector in decreasing order\n<\/span>order(x, decreasing= <span style=\"color: #008000;\">TRUE<\/span> )\n\n[1] 2 4 3 1\n\n<span style=\"color: #008080;\">#rank vector in reverse order (largest value = 1)\n<\/span>rank(-x)\n\n[1] 4 1 3 2\n<\/span><\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u8bf7\u6ce8\u610f\uff0c\u8fd9\u4e9b\u7ed3\u679c\u4e0e\u524d\u9762\u793a\u4f8b\u4e2d\u4ea7\u751f\u7684\u7ed3\u679c\u5b8c\u5168\u76f8\u53cd\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u6ce8\u610f\uff1a\u5982\u4f55\u4f7f\u7528 Rank() \u51fd\u6570\u5904\u7406\u5173\u7cfb<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<strong>tie.method<\/strong>\u53c2\u6570\u6765\u6307\u5b9a\u5728\u4f7f\u7528<strong>Rank()<\/strong>\u51fd\u6570\u65f6\u5e94\u5982\u4f55\u5904\u7406\u5173\u7cfb\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>rank(x, ties. <span style=\"color: #3366ff;\">method<\/span> = ' <span style=\"color: #ff0000;\">average<\/span> ')\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u9009\u9879\u4e4b\u4e00\u6765\u6307\u5b9a\u5982\u4f55\u5904\u7406\u94fe\u63a5\uff1a<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>average<\/strong> \uff1a\uff08\u9ed8\u8ba4\uff09\u4e3a\u6bcf\u4e2a\u94fe\u63a5\u7684\u9879\u76ee\u5206\u914d\u5e73\u5747\u6392\u540d\uff08\u6392\u540d\u7b2c 3 \u548c\u7b2c 4 \u7684\u9879\u76ee\u90fd\u5c06\u83b7\u5f97 3.5 \u7684\u6392\u540d\uff09<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>first<\/strong> \uff1a\u5c06\u7b2c\u4e00\u4e2a\u94fe\u63a5\u5143\u7d20\u5206\u914d\u7ed9\u6700\u4f4e\u6392\u540d\uff08\u6392\u540d\u7b2c 3 \u548c\u7b2c 4 \u4f4d\u7f6e\u7684\u5143\u7d20\u5c06\u5206\u522b\u83b7\u5f97\u6392\u540d 3 \u548c 4\uff09<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>min<\/strong> \uff1a\u5c06\u6bcf\u4e2a\u94fe\u63a5\u7684\u9879\u76ee\u5206\u914d\u5230\u6700\u4f4e\u6392\u540d\uff08\u6392\u540d\u7b2c 3 \u548c\u7b2c 4 \u7684\u9879\u76ee\u90fd\u5c06\u83b7\u5f97\u6392\u540d 3\uff09<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>max<\/strong> \uff1a\u4e3a\u6bcf\u4e2a\u94fe\u63a5\u7684\u9879\u76ee\u5206\u914d\u6700\u9ad8\u6392\u540d\uff08\u6392\u540d\u7b2c 3 \u548c\u7b2c 4 \u7684\u9879\u76ee\u90fd\u5c06\u83b7\u5f97\u6392\u540d 4\uff09<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>random<\/strong> \uff1a\u4e3a\u6bcf\u4e2a\u5e76\u5217\u5143\u7d20\u5206\u914d\u4e00\u4e2a\u968f\u673a\u6392\u540d\uff08\u5e76\u5217\u7b2c\u4e09\u548c\u7b2c\u56db\u4f4d\u7f6e\u7684\u5143\u7d20\u90fd\u53ef\u4ee5\u63a5\u6536\u4efb\u4e00\u6392\u540d\uff09<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u6839\u636e\u60a8\u7684\u60c5\u51b5\uff0c\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\u53ef\u80fd\u6bd4\u5176\u4ed6\u65b9\u6cd5\u66f4\u6709\u610f\u4e49\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><strong>\u5176\u4ed6\u8d44\u6e90<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u6559\u7a0b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 R \u4e2d\u6267\u884c\u5176\u4ed6\u5e38\u89c1\u64cd\u4f5c\uff1a<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/cn\/r\u4e2d\u7684\u591a\u5217\u6392\u5e8f\/\" target=\"_blank\" rel=\"noopener\">R\u4e2d\u5982\u4f55\u6309\u591a\u5217\u6392\u5e8f<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/r\u4e2d\u6309\u65e5\u671f\u6392\u5e8f\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 R \u4e2d\u6309\u65e5\u671f\u5bf9\u6570\u636e\u6846\u8fdb\u884c\u6392\u5e8f<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/r-\u4e2d\u7684\u767e\u5206\u4f4d\u6570\u6392\u540d\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u8ba1\u7b97R\u4e2d\u7684\u767e\u5206\u4f4d\u6392\u540d<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eba\u4eec\u7ecf\u5e38\u6df7\u6dc6\u7684 R \u7684\u4e09\u4e2a\u51fd\u6570\u662f\u6392\u5e8f\u3001\u6392\u5e8f\u548c\u6392\u540d\u3002 \u4ee5\u4e0b\u662f\u8fd9\u4e9b\u51fd\u6570\u4e4b\u95f4\u7684\u533a\u522b\uff1a sort()\u5c06\u6309\u5347\u5e8f\u5bf9\u5411\u91cf\u8fdb\u884c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-3020","post","type-post","status-publish","format-standard","hentry","category-11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5b8c\u6574\u6307\u5357\uff1a\u5982\u4f55\u5728 R \u4e2d\u4f7f\u7528 Sort()\u3001Order() \u548c Rank() - Statorials<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d sort()\u3001order() \u548c Rank() \u51fd\u6570\u4e4b\u95f4\u7684\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\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\/cn\/r\u4e2d\u7684\u6392\u5e8f\u987a\u5e8f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5b8c\u6574\u6307\u5357\uff1a\u5982\u4f55\u5728 R \u4e2d\u4f7f\u7528 Sort()\u3001Order() \u548c Rank() - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d sort()\u3001order() \u548c Rank() \u51fd\u6570\u4e4b\u95f4\u7684\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/r\u4e2d\u7684\u6392\u5e8f\u987a\u5e8f\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-19T14:52:35+00:00\" \/>\n<meta name=\"author\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/\",\"url\":\"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/\",\"name\":\"\u5b8c\u6574\u6307\u5357\uff1a\u5982\u4f55\u5728 R \u4e2d\u4f7f\u7528 Sort()\u3001Order() \u548c Rank() - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-19T14:52:35+00:00\",\"dateModified\":\"2023-07-19T14:52:35+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d sort()\u3001order() \u548c Rank() \u51fd\u6570\u4e4b\u95f4\u7684\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5b8c\u6574\u6307\u5357\uff1a\u5982\u4f55\u5728 r \u4e2d\u4f7f\u7528 sort()\u3001order() \u548c rank()\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/cn\/#website\",\"url\":\"https:\/\/statorials.org\/cn\/\",\"name\":\"Statorials\",\"description\":\"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\",\"name\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\"},\"description\":\"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a\",\"sameAs\":[\"https:\/\/statorials.org\/cn\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5b8c\u6574\u6307\u5357\uff1a\u5982\u4f55\u5728 R \u4e2d\u4f7f\u7528 Sort()\u3001Order() \u548c Rank() - Statorials","description":"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d sort()\u3001order() \u548c Rank() \u51fd\u6570\u4e4b\u95f4\u7684\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\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\/cn\/r\u4e2d\u7684\u6392\u5e8f\u987a\u5e8f\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5b8c\u6574\u6307\u5357\uff1a\u5982\u4f55\u5728 R \u4e2d\u4f7f\u7528 Sort()\u3001Order() \u548c Rank() - Statorials","og_description":"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d sort()\u3001order() \u548c Rank() \u51fd\u6570\u4e4b\u95f4\u7684\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\u3002","og_url":"https:\/\/statorials.org\/cn\/r\u4e2d\u7684\u6392\u5e8f\u987a\u5e8f\/","og_site_name":"Statorials","article_published_time":"2023-07-19T14:52:35+00:00","author":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/","url":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/","name":"\u5b8c\u6574\u6307\u5357\uff1a\u5982\u4f55\u5728 R \u4e2d\u4f7f\u7528 Sort()\u3001Order() \u548c Rank() - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-19T14:52:35+00:00","dateModified":"2023-07-19T14:52:35+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d sort()\u3001order() \u548c Rank() \u51fd\u6570\u4e4b\u95f4\u7684\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%8e%92%e5%ba%8f%e9%a1%ba%e5%ba%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5b8c\u6574\u6307\u5357\uff1a\u5982\u4f55\u5728 r \u4e2d\u4f7f\u7528 sort()\u3001order() \u548c rank()"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/cn\/#website","url":"https:\/\/statorials.org\/cn\/","name":"Statorials","description":"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261","name":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a"},"description":"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a","sameAs":["https:\/\/statorials.org\/cn"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/3020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/comments?post=3020"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/3020\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=3020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=3020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=3020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}