{"id":3963,"date":"2023-07-14T12:04:48","date_gmt":"2023-07-14T12:04:48","guid":{"rendered":"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/"},"modified":"2023-07-14T12:04:48","modified_gmt":"2023-07-14T12:04:48","slug":"r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/","title":{"rendered":"\u5982\u4f55\u4fee\u590d\uff1acolmeans(x, na.rm = true) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u4f7f\u7528 R \u65f6\u53ef\u80fd\u9047\u5230\u7684\u9519\u8bef\u6d88\u606f\u662f\uff1a<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>Error in colMeans(x, na.rm = TRUE): 'x' must be numeric\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u5f53\u60a8\u5c1d\u8bd5\u4f7f\u7528<strong>prcomp()<\/strong>\u51fd\u6570<a href=\"https:\/\/statorials.org\/cn\/r\u4e2d\u7684\u4e3b\u6210\u5206\u5206\u6790\/\" target=\"_blank\" rel=\"noopener\">\u5728 R \u4e2d\u6267\u884c\u4e3b\u6210\u5206\u5206\u6790<\/a>\uff0c\u5e76\u4e14\u60a8\u4f7f\u7528\u7684\u6570\u636e\u6846\u4e2d\u7684\u4e00\u5217\u6216\u591a\u5217\u4e0d\u662f\u6570\u503c\u65f6\uff0c\u901a\u5e38\u4f1a\u53d1\u751f\u6b64\u9519\u8bef\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6709\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u89e3\u51b3\u6b64\u9519\u8bef\uff1a<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u65b9\u6cd5 1\uff1a<\/strong>\u5c06\u975e\u6570\u5b57\u5217\u8f6c\u6362\u4e3a\u6570\u5b57\u5217<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u65b9\u6cd5 2\uff1a<\/strong>\u4ece\u6570\u636e\u6846\u4e2d\u5220\u9664\u975e\u6570\u5b57\u5217<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u5728\u5b9e\u8df5\u4e2d\u4f7f\u7528\u6bcf\u79cd\u65b9\u6cd5\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u5982\u4f55\u91cd\u73b0\u9519\u8bef<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u5047\u8bbe\u6211\u4eec\u5c1d\u8bd5\u5bf9\u4ee5\u4e0b\u5305\u542b\u4e00\u5217\u5b57\u7b26\u7684\u6570\u636e\u6846\u6267\u884c\u4e3b\u6210\u5206\u5206\u6790\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;\">#create data frame\n<\/span>df &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (team=c('A', 'A', 'C', 'B', 'C', 'B', 'B', 'C', 'A'),\n                 points=c(12, 8, 26, 25, 38, 30, 24, 24, 15),\n                 rebounds=c(10, 4, 5, 5, 4, 3, 8, 18, 22))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n  team points rebounds\n1 to 12 10\n2 to 8 4\n3 C 26 5\n4 B 25 5\n5 C 38 4\n6 B 30 3\n7 B 24 8\n8 C 24 18\n9 to 15 22\n\n<span style=\"color: #008080;\">#attempt to calculate principal components\n<\/span>prcomp(df)\n\nError in colMeans(x, na.rm = TRUE): 'x' must be numeric\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>team<\/strong>\u5217\u662f\u5b57\u7b26\u5217\uff0c\u5728\u5c1d\u8bd5\u4f7f\u7528<strong>prcomp()<\/strong>\u51fd\u6570\u65f6\u4f1a\u5bfc\u81f4\u9519\u8bef\u3002<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u65b9\u6cd5 1\uff1a\u5c06\u975e\u6570\u5b57\u5217\u8f6c\u6362\u4e3a\u6570\u5b57\u5217<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u907f\u514d\u6b64\u9519\u8bef\u7684\u4e00\u79cd\u65b9\u6cd5\u662f\u5728\u4f7f\u7528<strong>prcomp()<\/strong>\u51fd\u6570\u4e4b\u524d\u5c06<strong>team<\/strong>\u5217\u8f6c\u6362\u4e3a\u6570\u5b57\u5217\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;\">#convert character column to numeric\n<\/span>df$team &lt;- as. <span style=\"color: #3366ff;\">numeric<\/span> (as. <span style=\"color: #3366ff;\">factor<\/span> (df$team))\n\n<span style=\"color: #008080;\">#view updated data frame\n<\/span>df\n\n  team points rebounds\n1 1 12 10\n2 1 8 4\n3 3 26 5\n4 2 25 5\n5 3 38 4\n6 2 30 3\n7 2 24 8\n8 3 24 18\n9 1 15 22\n\n<span style=\"color: #008080;\">#calculate main components\n<\/span>prcomp(df)\n\nStandard deviations (1, .., p=3):\n[1] 9.8252704 6.0990235 0.4880538\n\nRotation (nxk) = (3 x 3):\n                 PC1 PC2 PC3\nteam -0.06810285 0.04199272 0.99679417\npoints -0.91850806 0.38741460 -0.07907512\nrebounds 0.38949319 0.92094872 -0.01218661<\/span><\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\"><span style=\"color: #000000;\">\u8fd9\u6b21\u6211\u4eec\u6ca1\u6709\u6536\u5230\u4efb\u4f55\u9519\u8bef\uff0c\u56e0\u4e3a\u6570\u636e\u6846\u4e2d\u7684\u6bcf\u4e00\u5217\u90fd\u662f\u6570\u5b57\u3002<\/span><\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>\u65b9\u6cd5 2\uff1a\u4ece\u6570\u636e\u6846\u4e2d\u5220\u9664\u975e\u6570\u5b57\u5217<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u907f\u514d\u9519\u8bef\u7684\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u5728\u4f7f\u7528<strong style=\"color: #000000;\">prcomp()<\/strong>\u51fd\u6570<span style=\"color: #000000;\">\u4e4b\u524d\u7b80\u5355\u5730\u4ece\u6570\u636e\u6846\u4e2d\u5220\u9664\u6240\u6709\u975e\u6570\u5b57\u5217<\/span><span style=\"color: #000000;\">\uff1a<\/span><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#remove non-numeric columns from data frame\n<\/span>df_new &lt;- df[ , unlist(lapply(df, is. <span style=\"color: #3366ff;\">numeric<\/span> ))]\n\n<span style=\"color: #008080;\">#view new data frame\n<\/span>df_new\n\n  rebound points\n1 12 10\n2 8 4\n3 26 5\n4 25 5\n5 38 4\n6 30 3\n7 24 8\n8 24 18\n9 15 22\n\n<span style=\"color: #008080;\">#calculate main components\n<\/span>prcomp(df_new)\n\nStandard deviations (1, .., p=2):\n[1] 9.802541 6.093638\n\nRotation (nxk) = (2 x 2):\n                PC1 PC2\npoints 0.9199431 0.3920519\nrebounds -0.3920519 0.9199431\n<\/span><\/span><\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u540c\u6837\uff0c\u6211\u4eec\u6ca1\u6709\u6536\u5230\u4efb\u4f55\u9519\u8bef\uff0c\u56e0\u4e3a\u6570\u636e\u6846\u4e2d\u7684\u6bcf\u4e00\u5217\u90fd\u662f\u6570\u5b57\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u6ce8\u610f<\/strong>\uff1a\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u7b2c\u4e00\u79cd\u65b9\u6cd5\u662f\u9996\u9009\u89e3\u51b3\u65b9\u6848\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528\u6240\u6709\u6570\u636e\u800c\u4e0d\u662f\u5220\u9664\u67d0\u4e9b\u5217\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\u4fee\u590d R \u4e2d\u7684\u5176\u4ed6\u5e38\u89c1\u9519\u8bef\uff1a<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/cn\/r-\u53c2\u6570\u610f\u5473\u7740\u4e0d\u540c\u7684\u884c\u6570\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 R \u4e2d\u4fee\u590d\uff1a\u53c2\u6570\u6d89\u53ca\u4e0d\u540c\u7684\u884c\u6570<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/\u9009\u62e9\u672a\u4f7f\u7528\u7684\u53c2\u6570\u65f6\u51fa\u73b0-dplyr-\u9519\u8bef\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u4fee\u590d R\uff1a\u9009\u62e9\u672a\u4f7f\u7528\u7684\u53c2\u6570\u65f6\u51fa\u9519<\/a><br \/><a href=\"https:\/\/statorials.org\/cn\/r-\u957f\u5ea6\u4e3a\u96f6\u7684\u66ff\u6362\/\" target=\"_blank\" rel=\"noopener\">\u5982\u4f55\u5728 R \u4e2d\u4fee\u590d\uff1a\u66ff\u6362\u957f\u5ea6\u4e3a\u96f6<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 R \u65f6\u53ef\u80fd\u9047\u5230\u7684\u9519\u8bef\u6d88\u606f\u662f\uff1a Error in colMeans(x, na.rm = TRUE): &#8216; [&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-3963","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>\u5982\u4f55\u4fee\u590d\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57 - Statorials<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d R \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57\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-error-col-\u610f\u5473\u7740-x-\u5fc5\u987b\u662f\u6570\u5b57\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4fee\u590d\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57 - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d R \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/r-error-col-\u610f\u5473\u7740-x-\u5fc5\u987b\u662f\u6570\u5b57\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-14T12:04:48+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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/\",\"url\":\"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/\",\"name\":\"\u5982\u4f55\u4fee\u590d\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57 - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-14T12:04:48+00:00\",\"dateModified\":\"2023-07-14T12:04:48+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d R \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u4fee\u590d\uff1acolmeans(x, na.rm = true) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57\"}]},{\"@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":"\u5982\u4f55\u4fee\u590d\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57 - Statorials","description":"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d R \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57\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-error-col-\u610f\u5473\u7740-x-\u5fc5\u987b\u662f\u6570\u5b57\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u4fee\u590d\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57 - Statorials","og_description":"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d R \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57\u3002","og_url":"https:\/\/statorials.org\/cn\/r-error-col-\u610f\u5473\u7740-x-\u5fc5\u987b\u662f\u6570\u5b57\/","og_site_name":"Statorials","article_published_time":"2023-07-14T12:04:48+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":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/","url":"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/","name":"\u5982\u4f55\u4fee\u590d\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57 - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-14T12:04:48+00:00","dateModified":"2023-07-14T12:04:48+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u672c\u6559\u7a0b\u4ecb\u7ecd\u5982\u4f55\u4fee\u590d R \u4e2d\u7684\u4ee5\u4e0b\u9519\u8bef\uff1acolMeans(x, na.rm = TRUE) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/r-error-col-%e6%84%8f%e5%91%b3%e7%9d%80-x-%e5%bf%85%e9%a1%bb%e6%98%af%e6%95%b0%e5%ad%97\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4fee\u590d\uff1acolmeans(x, na.rm = true) \u4e2d\u7684\u9519\u8bef\uff1a\u201cx\u201d\u5fc5\u987b\u662f\u6570\u5b57"}]},{"@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\/3963","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=3963"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/3963\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=3963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=3963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=3963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}