{"id":467,"date":"2023-07-29T19:49:15","date_gmt":"2023-07-29T19:49:15","guid":{"rendered":"https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/"},"modified":"2023-07-29T19:49:15","modified_gmt":"2023-07-29T19:49:15","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 r \u4e2d\u7684 sample \u51fd\u6570\u751f\u6210\u6837\u672c"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">R \u4e2d\u7684<strong>sample()<\/strong>\u51fd\u6570\u5141\u8bb8\u60a8\u4ece\u6570\u636e\u96c6\u6216\u5411\u91cf\u4e2d\u968f\u673a\u62bd\u53d6\u5143\u7d20\u6837\u672c\uff0c\u65e0\u8bba\u662f\u5426\u6709\u66ff\u6362\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\">Sample() \u51fd\u6570\u7684\u57fa\u672c\u8bed\u6cd5\u662f\uff1a<\/span><\/p>\n<p><strong><span style=\"color: #000000;\">\u6837\u672c\uff08x\uff0c\u5927\u5c0f\uff0c\u66ff\u6362= <span class=\"hljs-literal\">FALSE<\/span> \uff0c\u6982\u7387= <span class=\"hljs-literal\">NULL<\/span> \uff09<\/span><\/strong><\/p>\n<p> <span style=\"color: #000000;\"><strong>x<\/strong> \uff1a\u4ece\u4e2d\u9009\u62e9\u6837\u672c\u7684\u6570\u636e\u96c6\u6216\u5411\u91cf<\/span><br \/><span style=\"color: #000000;\"><strong>\u5c3a\u5bf8<\/strong>\uff1a\u6837\u54c1\u5c3a\u5bf8<\/span><br \/><span style=\"color: #000000;\"><strong>\u66ff\u6362<\/strong>\uff1a\u662f\u5426\u5e94\u8be5\u5728\u66ff\u6362\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u91c7\u6837\uff1f \uff08\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u8fd9\u662f FALSE\uff09<\/span><br \/> <span style=\"color: #000000;\"><strong>prob<\/strong> \uff1a\u6982\u7387\u6743\u91cd\u5411\u91cf\uff0c\u7528\u4e8e\u83b7\u53d6\u91c7\u6837\u5411\u91cf\u7684\u5143\u7d20<\/span><\/p>\n<p><span style=\"color: #000000;\"><em>Sample() \u7684\u5b8c\u6574\u6587\u6863\u53ef\u4ee5<a href=\"https:\/\/www.rdocumentation.org\/packages\/base\/versions\/3.5.2\/topics\/sample\" target=\"_blank\" rel=\"noopener noreferrer\">\u5728\u8fd9\u91cc<\/a>\u627e\u5230\u3002<\/em><\/span><\/p>\n<p><span style=\"color: #000000;\">\u4ee5\u4e0b\u793a\u4f8b\u6f14\u793a\u4e86\u4f7f\u7528sample()\u7684\u5b9e\u9645\u793a\u4f8b\u3002<\/span><\/p>\n<h2><strong><span style=\"color: #000000;\">\u4ece\u5411\u91cf\u751f\u6210\u6837\u672c<\/span><\/strong><\/h2>\n<p><span style=\"color: #000000;\">\u5047\u8bbe\u6211\u4eec\u6709<em>\u4e00\u4e2a<\/em>\u5305\u542b 10 \u4e2a\u5143\u7d20\u7684\u5411\u91cf a\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define vector <em>a<\/em> with 10 elements in it<\/span>\na &lt;- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u8981\u751f\u6210\u5411\u91cf<em>a<\/em>\u7684 5 \u4e2a\u5143\u7d20\u7684\u968f\u673a\u6837\u672c\u800c\u4e0d\u9700\u8981\u653e\u56de\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u8bed\u6cd5\uff1a<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#generate random sample of 5 elements from vector <em>a\n<\/em><\/span>sample(a, 5)\n\n#[1] 3 1 4 7 5<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u6bcf\u6b21\u6211\u4eec\u751f\u6210\u968f\u673a\u6837\u672c\u65f6\uff0c\u6211\u4eec\u5f88\u53ef\u80fd\u6bcf\u6b21\u90fd\u4f1a\u5f97\u5230\u4e00\u7ec4\u4e0d\u540c\u7684\u9879\u76ee\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#generate another random sample of 5 elements from vector <em>a\n<\/em><\/span>sample(a, 5)\n\n#[1] 1 8 7 4 2<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u5982\u679c\u6211\u4eec\u5e0c\u671b\u80fd\u591f\u590d\u5236\u7ed3\u679c\u5e76\u6bcf\u6b21\u4f7f\u7528\u76f8\u540c\u7684\u6837\u672c\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<strong>set.seed()<\/strong> \u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#set.seed(some random number) to ensure that we get the same sample each time\n<span style=\"color: #000000;\">set.seed(122)\n\n<span style=\"color: #008080;\">#define vector <em>a<\/em> with 10 elements in it<\/span>\na &lt;- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)<\/span>\n\n#generate random sample of 5 elements from vector <em>a\n<\/em><\/span>sample(a, 5)\n\n#[1] 10 9 2 1 4\n\n<span style=\"color: #008080;\">#generate another random sample of 5 elements from vector <em>a\n<\/em><\/span>sample(a, 5)\n\n#[1] 10 9 2 1 4\n<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528<strong>replace = TRUE<\/strong>\u53c2\u6570\u6765\u8fdb\u884c\u66ff\u6362\u91c7\u6837\u3002\u8fd9\u610f\u5473\u7740\u5411\u91cf\u7684\u6bcf\u4e2a\u5143\u7d20\u90fd\u53ef\u4ee5\u9009\u62e9\u5728\u6837\u672c\u4e2d\u51fa\u73b0\u591a\u6b21\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#generate random sample of 5 elements from vector <em>a<\/em> using sampling with replacement\n<\/span>sample(a, 5, replace = TRUE)\n\n#10 10 2 1 6<\/strong><\/pre>\n<h2><strong><span style=\"color: #000000;\">\u4ece\u6570\u636e\u96c6\u751f\u6210\u6837\u672c<\/span><\/strong><\/h2>\n<p><span style=\"color: #000000;\">Sample() \u51fd\u6570\u7684\u53e6\u4e00\u4e2a\u5e38\u89c1\u7528\u9014\u662f\u4ece\u6570\u636e\u96c6\u4e2d\u751f\u6210\u884c\u7684\u968f\u673a\u6837\u672c\u3002\u5bf9\u4e8e\u4ee5\u4e0b\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u4ece\u5185\u7f6e R \u6570\u636e\u96c6<strong>iris<\/strong>\u751f\u6210 10 \u884c\u7684\u968f\u673a\u6837\u672c\uff0c\u8be5\u6570\u636e\u96c6\u603b\u5171 150 \u884c\u3002<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#view first 6 rows of<\/span> <span style=\"color: #008080;\">iris dataset\n<\/span><\/strong><span style=\"color: #008080;\"><strong><span style=\"color: #000000;\">head(iris)<\/span>\n\n<span style=\"color: #000000;\"># Sepal.Length Sepal.Width Petal.Length Petal.Width Species\n#1 5.1 3.5 1.4 0.2 setosa\n#2 4.9 3.0 1.4 0.2 setosa\n#3 4.7 3.2 1.3 0.2 setosa\n#4 4.6 3.1 1.5 0.2 setosa\n#5 5.0 3.6 1.4 0.2 setosa\n#6 5.4 3.9 1.7 0.4 setosa<\/span><\/strong>\n\n<\/span><strong><span style=\"color: #008080;\">#set<\/span> <span style=\"color: #008080;\"><strong>seed to ensure that this example is replicable<\/strong>\n<span style=\"color: #000000;\">set.seed(100)<\/span>\n<\/span>\n<span style=\"color: #008080;\">#choose a random vector of 10 elements from all 150 rows in iris dataset<\/span>\nsample_rows &lt;- sample(1:nrow(iris), 10)\nsample_rows\n\n#[1] 47 39 82 9 69 71 117 53 78 25\n\n<span style=\"color: #008080;\">#choose the 10 rows of the iris dataset that match the row numbers above<\/span>\nsample &lt;- iris[sample_rows, ]\nsample\n\n# Sepal.Length Sepal.Width Petal.Length Petal.Width Species\n#47 5.1 3.8 1.6 0.2 setosa\n#39 4.4 3.0 1.3 0.2 setosa\n#82 5.5 2.4 3.7 1.0 versicolor\n#9 4.4 2.9 1.4 0.2 setosa\n#69 6.2 2.2 4.5 1.5 versicolor\n#71 5.9 3.2 4.8 1.8 versicolor\n#117 6.5 3.0 5.5 1.8 virginica\n#53 6.9 3.1 4.9 1.5 versicolor\n#78 6.7 3.0 5.0 1.7 versicolor\n#25 4.8 3.4 1.9 0.2 setosa<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u60a8\u5c06\u4e0a\u9762\u7684\u4ee3\u7801\u590d\u5236\u5e76\u7c98\u8d34\u5230\u60a8\u81ea\u5df1\u7684 R \u63a7\u5236\u53f0\u4e2d\uff0c\u60a8\u5e94\u8be5\u83b7\u5f97\u5b8c\u5168\u76f8\u540c\u7684\u6837\u672c\uff0c\u56e0\u4e3a\u6211\u4eec\u4f7f\u7528<strong>set.seed(100)<\/strong>\u6765\u786e\u4fdd\u6bcf\u6b21\u90fd\u83b7\u5f97\u76f8\u540c\u7684\u6837\u672c\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>R \u4e2d\u7684sample()\u51fd\u6570\u5141\u8bb8\u60a8\u4ece\u6570\u636e\u96c6\u6216\u5411\u91cf\u4e2d\u968f\u673a\u62bd\u53d6\u5143\u7d20\u6837\u672c\uff0c\u65e0\u8bba\u662f\u5426\u6709\u66ff\u6362\u3002 Sample() \u51fd\u6570\u7684 [&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-467","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\u4f7f\u7528 R \u4e2d\u7684 Sample \u51fd\u6570\u751f\u6210\u6837\u672c - Statorials<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684sample()\u51fd\u6570\u751f\u6210\u6837\u672c\u7684\u7b80\u5355\u6559\u7a0b\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\/\u5982\u4f55\u4f7f\u7528r\u4e2d\u7684sample\u51fd\u6570\u751f\u6210\u6837\u672c\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684 Sample \u51fd\u6570\u751f\u6210\u6837\u672c - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684sample()\u51fd\u6570\u751f\u6210\u6837\u672c\u7684\u7b80\u5355\u6559\u7a0b\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/\u5982\u4f55\u4f7f\u7528r\u4e2d\u7684sample\u51fd\u6570\u751f\u6210\u6837\u672c\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T19:49:15+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\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/\",\"url\":\"https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/\",\"name\":\"\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684 Sample \u51fd\u6570\u751f\u6210\u6837\u672c - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-29T19:49:15+00:00\",\"dateModified\":\"2023-07-29T19:49:15+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u5173\u4e8e\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684sample()\u51fd\u6570\u751f\u6210\u6837\u672c\u7684\u7b80\u5355\u6559\u7a0b\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u4f7f\u7528 r \u4e2d\u7684 sample \u51fd\u6570\u751f\u6210\u6837\u672c\"}]},{\"@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\u4f7f\u7528 R \u4e2d\u7684 Sample \u51fd\u6570\u751f\u6210\u6837\u672c - Statorials","description":"\u5173\u4e8e\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684sample()\u51fd\u6570\u751f\u6210\u6837\u672c\u7684\u7b80\u5355\u6559\u7a0b\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\/\u5982\u4f55\u4f7f\u7528r\u4e2d\u7684sample\u51fd\u6570\u751f\u6210\u6837\u672c\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684 Sample \u51fd\u6570\u751f\u6210\u6837\u672c - Statorials","og_description":"\u5173\u4e8e\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684sample()\u51fd\u6570\u751f\u6210\u6837\u672c\u7684\u7b80\u5355\u6559\u7a0b\u3002","og_url":"https:\/\/statorials.org\/cn\/\u5982\u4f55\u4f7f\u7528r\u4e2d\u7684sample\u51fd\u6570\u751f\u6210\u6837\u672c\/","og_site_name":"Statorials","article_published_time":"2023-07-29T19:49:15+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\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/","url":"https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/","name":"\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684 Sample \u51fd\u6570\u751f\u6210\u6837\u672c - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-29T19:49:15+00:00","dateModified":"2023-07-29T19:49:15+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u5173\u4e8e\u5982\u4f55\u4f7f\u7528 R \u4e2d\u7684sample()\u51fd\u6570\u751f\u6210\u6837\u672c\u7684\u7b80\u5355\u6559\u7a0b\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8r%e4%b8%ad%e7%9a%84sample%e5%87%bd%e6%95%b0%e7%94%9f%e6%88%90%e6%a0%b7%e6%9c%ac\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4f7f\u7528 r \u4e2d\u7684 sample \u51fd\u6570\u751f\u6210\u6837\u672c"}]},{"@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\/467","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=467"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/467\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}