{"id":3619,"date":"2023-07-16T12:37:36","date_gmt":"2023-07-16T12:37:36","guid":{"rendered":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/"},"modified":"2023-07-16T12:37:36","modified_gmt":"2023-07-16T12:37:36","slug":"r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/","title":{"rendered":"R \u4e2d\u7684 data.table \u4e0e\u6570\u636e\u6846\uff1a\u4e09\u4e2a\u5173\u952e\u533a\u522b"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u5728 R \u7f16\u7a0b\u8bed\u8a00\u4e2d\uff0c <strong>data.frame<\/strong>\u662f R \u6570\u636e\u5e93\u7684\u4e00\u90e8\u5206\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4efb\u4f55<strong>data.frame<\/strong>\u90fd\u53ef\u4ee5\u4f7f\u7528<strong>data.table<\/strong>\u5305\u7684<strong>setDF<\/strong>\u51fd\u6570\u8f6c\u6362\u4e3a<strong>data.table<\/strong> \u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4e0e R \u4e2d\u7684 data.frame \u76f8\u6bd4\uff0cdata.table \u5177\u6709\u4ee5\u4e0b\u4f18\u70b9\uff1a<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong>\u60a8\u53ef\u4ee5\u4f7f\u7528 data.table \u5305\u4e2d\u7684<a href=\"https:\/\/statorials.org\/cn\/\u6211\u5bb3\u6015\/\" target=\"_blank\" rel=\"noopener\">fread<\/a>\u51fd\u6570\u5c06\u6587\u4ef6\u8bfb\u53d6\u5230 data.table \u4e2d\uff0c\u901f\u5ea6\u6bd4\u57fa\u672c R \u51fd\u6570\uff08\u4f8b\u5982<a href=\"https:\/\/statorials.org\/cn\/\u5c06csv\u5bfc\u5165\u5230r\u4e2d\/\" target=\"_blank\" rel=\"noopener\">read.csv \uff09<\/a><em>\u5feb\u5f97\u591a<\/em>\uff0c\u540e\u8005\u5c06\u6587\u4ef6\u8bfb\u53d6\u5230 data.frame \u4e2d\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong>\u5bf9 data.table \u6267\u884c\u64cd\u4f5c\uff08\u4f8b\u5982\u5206\u7ec4\u548c\u805a\u5408\uff09\u7684\u901f\u5ea6\u6bd4\u5bf9 data.frame<em>\u5feb\u5f97\u591a<\/em>\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>3.<\/strong>\u5f53\u5c06 data.frame \u6253\u5370\u5230\u63a7\u5236\u53f0\u65f6\uff0cR \u5c06\u5c1d\u8bd5\u6253\u5370 data.frame \u4e2d\u7684\u6bcf\u4e00\u884c\u3002\u4f46\u662f\uff0cdata.table \u5c06\u4ec5\u663e\u793a\u524d 100 \u884c\uff0c\u5982\u679c\u60a8\u6b63\u5728\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\uff0c\u8fd9\u53ef\u80fd\u4f1a\u9632\u6b62\u60a8\u7684\u4f1a\u8bdd\u6302\u8d77\u6216\u5d29\u6e83\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u793a\u4f8b\u8bf4\u660e\u4e86\u5b9e\u8df5\u4e2d data.frames \u548c data.tables \u4e4b\u95f4\u7684\u5dee\u5f02\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u5dee\u5f02#1\uff1a\u4f7f\u7528 fread \u5bfc\u5165\u901f\u5ea6\u66f4\u5feb<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u4ee3\u7801\u663e\u793a\u5982\u4f55\u4f7f\u7528 data.table \u5305\u4e2d\u7684<strong>fread<\/strong>\u51fd\u6570\u548c R \u6570\u636e\u5e93\u4e2d\u7684<strong>read.csv<\/strong>\u51fd\u6570\u5bfc\u5165 10,000 \u884c\u548c 100 \u5217\u7684\u6570\u636e\u6846\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">library<\/span> (microbenchmark)\n<span style=\"color: #008000;\">library<\/span> (data.table)\n\n<span style=\"color: #008080;\">#make this example reproducible\n<\/span>set. <span style=\"color: #3366ff;\">seeds<\/span> (1)\n\n<span style=\"color: #008080;\">#create data frame with 10,000 rows and 100 columns\n<\/span>df &lt;- as. <span style=\"color: #3366ff;\">data<\/span> . <span style=\"color: #3366ff;\">frame<\/span> (matrix(runif(10^4 * 100), nrow = 10^4))\n\n<span style=\"color: #008080;\">#export CSV to current working directory\n<\/span>write.write. <span style=\"color: #3366ff;\">csv<\/span> (df, \" <span style=\"color: #ff0000;\">test.csv<\/span> \", quote = <span style=\"color: #008000;\">FALSE<\/span> )\n\n<span style=\"color: #008080;\">#import CSV file using fread and read.csv and time how long it takes\n<\/span>results &lt;- microbenchmark(\n  read.csv = read. <span style=\"color: #3366ff;\">csv<\/span> (\" <span style=\"color: #ff0000;\">test.csv<\/span> \", header = <span style=\"color: #008000;\">TRUE<\/span> , stringsAsFactors = <span style=\"color: #008000;\">FALSE<\/span> ),\n  fread = fread(\" <span style=\"color: #ff0000;\">test.csv<\/span> \", sep = \",\", stringsAsFactors = <span style=\"color: #008000;\">FALSE<\/span> ),\n  times = 10)\n\n<span style=\"color: #008080;\">#view results\n<\/span>results\n\nUnit: milliseconds\n     expr min lq mean median uq max neval cld\n read.csv 817.1867 892.8748 1026.7071 899.5755 926.9120 1964.0540 10 b\n    fread 113.5889 116.2735 136.4079 124.3816 136.0534 211.7484 10 a<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u4ece\u7ed3\u679c\u4e2d\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u4e0e<strong>read.csv<\/strong>\u51fd\u6570\u76f8\u6bd4\uff0c <strong>fread<\/strong>\u5bfc\u5165\u6b64 CSV \u6587\u4ef6\u7684\u901f\u5ea6\u5927\u7ea6\u5feb 10 \u500d\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u8bf7\u6ce8\u610f\uff0c\u5bf9\u4e8e\u8f83\u5927\u7684\u6570\u636e\u96c6\uff0c\u8fd9\u79cd\u5dee\u5f02\u4f1a\u66f4\u5927\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u5dee\u5f02#2\uff1a\u4f7f\u7528 data.table \u8fdb\u884c\u66f4\u5feb\u7684\u6570\u636e\u64cd\u4f5c<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u4e00\u822c\u6765\u8bf4\uff0c <strong>data.table<\/strong>\u8fd8\u53ef\u4ee5\u6bd4<strong>data.frame<\/strong>\u66f4\u5feb\u5730\u6267\u884c\u4efb\u4f55\u6570\u636e\u64cd\u4f5c\u4efb\u52a1\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u663e\u793a\u5982\u4f55\u8ba1\u7b97 data.table \u548c data.frame \u4e2d\u7531\u53e6\u4e00\u4e2a\u53d8\u91cf\u5206\u7ec4\u7684\u53d8\u91cf\u7684\u5e73\u5747\u503c\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008000;\">library<\/span> (microbenchmark)\n<span style=\"color: #008000;\">library<\/span> (data.table)\n\n<span style=\"color: #008080;\">#make this example reproducible\n<\/span>set.seed(1)\n\n#create data frame with 10,000 rows and 100 columns\nd_frame &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (team=rep(c(' <span style=\"color: #ff0000;\">A<\/span> ', ' <span style=\"color: #ff0000;\">B<\/span> '), each=5000),\n                      points=c(rnorm(10000, mean=20, sd=3)))\n\n<span style=\"color: #008080;\">#create data.table from data.frame\n<\/span>d_table &lt;- setDT(d_frame)\n\n<span style=\"color: #008080;\">#calculate mean of points grouped by team in data.frame and data.table\n<\/span>results &lt;- microbenchmark(\n  mean_d_frame = aggregate(d_frame$points, list(d_frame$team), FUN=mean),\n  mean_d_table = d_table[ ,list(mean=mean(points)), by=team],\n  times = 10)\n\n<span style=\"color: #008080;\">#view results\n<\/span>results\n\nUnit: milliseconds\n         expr min lq mean median uq max neval cld\n mean_d_frame 2.9045 3.0077 3.11683 3.1074 3.1654 3.4824 10 b\n mean_d_table 1.0539 1.1140 1.52002 1.2075 1.2786 3.6084 10 a<\/strong><\/span><\/pre>\n<p><span style=\"color: #000000;\">\u4ece\u7ed3\u679c\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230<strong>data.table<\/strong>\u6bd4<strong>data.frame<\/strong>\u5feb\u5927\u7ea6\u4e09\u500d\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5bf9\u4e8e\u66f4\u5927\u7684\u6570\u636e\u96c6\uff0c\u8fd9\u79cd\u5dee\u5f02\u4f1a\u66f4\u5927\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u5dee\u5f02#3\uff1a\u4f7f\u7528 data.table \u6253\u5370\u7684\u884c\u6570\u66f4\u5c11<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u5f53\u5c06<strong>data.frame<\/strong>\u6253\u5370\u5230\u63a7\u5236\u53f0\u65f6\uff0cR \u5c06\u5c1d\u8bd5\u6253\u5370 data.frame \u4e2d\u7684\u6bcf\u4e00\u884c\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4f46\u662f\uff0c <strong>data.table<\/strong>\u5c06\u4ec5\u663e\u793a\u524d 100 \u884c\uff0c\u5982\u679c\u60a8\u6b63\u5728\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\uff0c\u8fd9\u53ef\u80fd\u4f1a\u9632\u6b62\u60a8\u7684\u4f1a\u8bdd\u6302\u8d77\u6216\u5d29\u6e83\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4f8b\u5982\uff0c\u5728\u4e0b\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u6570\u636e\u6846\u548c\u4e00\u4e2a 200 \u884c\u7684 data.table\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6253\u5370 data.frame \u65f6\uff0cR \u5c06\u5c1d\u8bd5\u6253\u5370\u6bcf\u4e00\u884c\uff0c\u800c\u6253\u5370 data.table \u5c06\u4ec5\u663e\u793a\u524d\u4e94\u884c\u548c\u540e\u4e94\u884c\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">library<\/span> (data.table)\n\n<span style=\"color: #008080;\">#make this example reproducible\n<\/span>set. <span style=\"color: #3366ff;\">seeds<\/span> (1)\n\n<span style=\"color: #008080;\">#create data frame\n<\/span>d_frame &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (x=rnorm(200),\n                      y=rnorm(200),\n                      z=rnorm(200))\n<span style=\"color: #008080;\">#view data frame\n<\/span>d_frame\n\n               X Y Z\n1 -0.055303118 1.54858564 -2.065337e-02\n2 0.354143920 0.36706204 -3.743962e-01\n3 -0.999823809 -1.57842544 4.392027e-01\n4 2.586214840 0.17383147 -2.081125e+00\n5 -1.917692199 -2.11487401 4.073522e-01\n6 0.039614766 2.21644236 1.869164e+00\n7 -1.942259548 0.81566443 4.740712e-01\n8 -0.424913746 1.01081030 4.996065e-01\n9 -1.753210825 -0.98893038 -6.290307e-01\n10 0.232382655 -1.25229873 -1.324883e+00\n11 0.027278832 0.44209325 -3.221920e-01\n...\n<span style=\"color: #008080;\">#create data table\n<\/span>d_table &lt;- setDT(d_frame)\n\n<span style=\"color: #008080;\">#view data table\n<\/span>d_table\n\n               X Y Z\n  1: -0.05530312 1.54858564 -0.02065337\n  2: 0.35414392 0.36706204 -0.37439617\n  3: -0.99982381 -1.57842544 0.43920275\n  4: 2.58621484 0.17383147 -2.08112491\n  5: -1.91769220 -2.11487401 0.40735218\n ---                                    \n196: -0.06196178 1.08164065 0.58609090\n197: 0.34160667 -0.01886703 1.61296255\n198: -0.38361957 -0.03890329 0.71377217\n199: -0.80719743 -0.89674205 -0.49615702\n200: -0.26502679 -0.15887435 -1.73781026<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u8fd9\u662f<strong>data.table<\/strong>\u76f8\u5bf9\u4e8e<strong>data.frame<\/strong>\u7684\u4e00\u4e2a\u4f18\u52bf\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u60a8\u4e0d\u60f3\u610f\u5916\u6253\u5370\u5230\u63a7\u5236\u53f0\u7684\u5927\u578b\u6570\u636e\u96c6\u65f6\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u5176\u4ed6\u8d44\u6e90<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u6559\u7a0b\u89e3\u91ca\u4e86\u5982\u4f55\u5728 R \u4e2d\u6267\u884c\u5176\u4ed6\u5e38\u89c1\u4efb\u52a1\uff1a<\/span><\/p>\n<p><a href=\"https:\/\/statorials.org\/cn\/r-\u6dfb\u52a0\u5230\u6570\u636e\u6846\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 R \u4e2d\u5411\u6570\u636e\u6846\u6dfb\u52a0\u884c<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/r-\u4fdd\u7559\u5217\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 R \u4e2d\u4fdd\u7559\u67d0\u4e9b\u5217<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/dplyr-\u9009\u62e9\u6570\u5b57\u5217\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 R \u4e2d\u4ec5\u9009\u62e9\u6570\u5b57\u5217<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 R \u7f16\u7a0b\u8bed\u8a00\u4e2d\uff0c data.frame\u662f R \u6570\u636e\u5e93\u7684\u4e00\u90e8\u5206\u3002 \u4efb\u4f55data.frame\u90fd\u53ef\u4ee5\u4f7f\u7528data [&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-3619","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>R \u4e2d\u7684 data.table \u4e0e\u6570\u636e\u6846\uff1a\u4e09\u4e2a\u5173\u952e\u533a\u522b - Statorials<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d data.tables \u548c\u6570\u636e\u6846\u4e4b\u95f4\u7684\u4e3b\u8981\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\u6570\u636e\u8868\u4e0e\u6570\u636e\u6846\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R \u4e2d\u7684 data.table \u4e0e\u6570\u636e\u6846\uff1a\u4e09\u4e2a\u5173\u952e\u533a\u522b - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d data.tables \u548c\u6570\u636e\u6846\u4e4b\u95f4\u7684\u4e3b\u8981\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/r\u4e2d\u7684\u6570\u636e\u8868\u4e0e\u6570\u636e\u6846\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-16T12:37:36+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\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\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%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/\",\"url\":\"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/\",\"name\":\"R \u4e2d\u7684 data.table \u4e0e\u6570\u636e\u6846\uff1a\u4e09\u4e2a\u5173\u952e\u533a\u522b - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-16T12:37:36+00:00\",\"dateModified\":\"2023-07-16T12:37:36+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d data.tables \u548c\u6570\u636e\u6846\u4e4b\u95f4\u7684\u4e3b\u8981\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R \u4e2d\u7684 data.table \u4e0e\u6570\u636e\u6846\uff1a\u4e09\u4e2a\u5173\u952e\u533a\u522b\"}]},{\"@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":"R \u4e2d\u7684 data.table \u4e0e\u6570\u636e\u6846\uff1a\u4e09\u4e2a\u5173\u952e\u533a\u522b - Statorials","description":"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d data.tables \u548c\u6570\u636e\u6846\u4e4b\u95f4\u7684\u4e3b\u8981\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\u6570\u636e\u8868\u4e0e\u6570\u636e\u6846\/","og_locale":"zh_CN","og_type":"article","og_title":"R \u4e2d\u7684 data.table \u4e0e\u6570\u636e\u6846\uff1a\u4e09\u4e2a\u5173\u952e\u533a\u522b - Statorials","og_description":"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d data.tables \u548c\u6570\u636e\u6846\u4e4b\u95f4\u7684\u4e3b\u8981\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\u3002","og_url":"https:\/\/statorials.org\/cn\/r\u4e2d\u7684\u6570\u636e\u8868\u4e0e\u6570\u636e\u6846\/","og_site_name":"Statorials","article_published_time":"2023-07-16T12:37:36+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","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/","url":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/","name":"R \u4e2d\u7684 data.table \u4e0e\u6570\u636e\u6846\uff1a\u4e09\u4e2a\u5173\u952e\u533a\u522b - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-16T12:37:36+00:00","dateModified":"2023-07-16T12:37:36+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u672c\u6559\u7a0b\u89e3\u91ca\u4e86 R \u4e2d data.tables \u548c\u6570\u636e\u6846\u4e4b\u95f4\u7684\u4e3b\u8981\u533a\u522b\uff0c\u5305\u62ec\u793a\u4f8b\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/r%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e4%b8%8e%e6%95%b0%e6%8d%ae%e6%a1%86\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"R \u4e2d\u7684 data.table \u4e0e\u6570\u636e\u6846\uff1a\u4e09\u4e2a\u5173\u952e\u533a\u522b"}]},{"@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\/3619","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=3619"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/3619\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=3619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=3619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=3619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}