<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Exploring Medical Data Science with R: Foundations]]></title><description><![CDATA[This section lays the groundwork for medical data science by introducing its core concepts, research mindset, and essential tools, with a strong focus on R and the modern data science ecosystem. It walks through the full research workflow—from data acquisition and cleaning to analysis, visualization, and interpretation—while also introducing AI, machine learning, and large language models, preparing you for advanced topics such as statistical modeling, clinical trials, and large-scale public database research.
]]></description><link>https://medicaldatascience.substack.com/s/foundations</link><image><url>https://substackcdn.com/image/fetch/$s_!Dnky!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb57720ba-775f-4784-8be9-1dd08d3ce039_1280x1280.png</url><title>Exploring Medical Data Science with R: Foundations</title><link>https://medicaldatascience.substack.com/s/foundations</link></image><generator>Substack</generator><lastBuildDate>Sat, 16 May 2026 14:42:13 GMT</lastBuildDate><atom:link href="https://medicaldatascience.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Xie Yaojue]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[medicaldatascience@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[medicaldatascience@substack.com]]></itunes:email><itunes:name><![CDATA[Dr. Xie YJ]]></itunes:name></itunes:owner><itunes:author><![CDATA[Dr. Xie YJ]]></itunes:author><googleplay:owner><![CDATA[medicaldatascience@substack.com]]></googleplay:owner><googleplay:email><![CDATA[medicaldatascience@substack.com]]></googleplay:email><googleplay:author><![CDATA[Dr. Xie YJ]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Sec.1-Ch.3-Subsec.9：Creating Interactive Data Reports with R Markdown and Shiny]]></title><description><![CDATA[Combine R&#8217;s Analytical Power with Dynamic Web Interfaces for Real-Time Data Visualization and Analysis]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch3-subsec9creating-interactive</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch3-subsec9creating-interactive</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Wed, 11 Feb 2026 03:36:08 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!YkMd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!YkMd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!YkMd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png 424w, https://substackcdn.com/image/fetch/$s_!YkMd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png 848w, https://substackcdn.com/image/fetch/$s_!YkMd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png 1272w, https://substackcdn.com/image/fetch/$s_!YkMd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!YkMd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png" width="1456" height="814" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:814,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1656291,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/187590216?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!YkMd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png 424w, https://substackcdn.com/image/fetch/$s_!YkMd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png 848w, https://substackcdn.com/image/fetch/$s_!YkMd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png 1272w, https://substackcdn.com/image/fetch/$s_!YkMd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe2ae633-9286-48bd-af28-a13cdded2c13_2020x1130.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>R is one of the most widely used programming languages in the field of data science. Its strengths lie not only in data analysis capabilities, but also in its powerful visualization and report generation features. In the data analysis process, generating reports, presenting results, and sharing outcomes with others are essential tasks. Shiny is an R package for building interactive web applications. It combines the analytical power of R with dynamic and interactive web interfaces, allowing users to interact with data and update results in real time.</p><p>In this article, we explore how to use R Markdown together with Shiny to create data reports and interactive applications. Through practical examples, readers will learn how to combine static reports with dynamic applications to create data products that are both visually appealing and highly practical.</p><div><hr></div><h2><strong>Overview and Applications of Shiny</strong></h2><p>In R scripts, Shiny is typically used to build full interactive web applications. Users run the script to start a server and interact with a standalone webpage.</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch3-subsec9creating-interactive">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.3-Subsec.8：Integrating JavaScript Visualization for Interactive Data Reporting]]></title><description><![CDATA[How to Wrap JavaScript Libraries into R Functions and Build Interactive Visualizations with R Markdown]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch3-subsec8integrating-javascript</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch3-subsec8integrating-javascript</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Wed, 11 Feb 2026 03:17:34 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ill3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ill3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ill3!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png 424w, https://substackcdn.com/image/fetch/$s_!ill3!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png 848w, https://substackcdn.com/image/fetch/$s_!ill3!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png 1272w, https://substackcdn.com/image/fetch/$s_!ill3!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ill3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1675938,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/187589476?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ill3!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png 424w, https://substackcdn.com/image/fetch/$s_!ill3!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png 848w, https://substackcdn.com/image/fetch/$s_!ill3!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png 1272w, https://substackcdn.com/image/fetch/$s_!ill3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c37364a-196a-44f2-8640-80b4699533da_2022x1138.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>With the growing demand for data visualization and interactive applications, R Markdown is no longer limited to generating static reports. It can produce interactive content, providing more vivid and operational analysis presentations. <strong>HTML Widgets</strong> is an R framework that combines R&#8217;s data processing capabilities with modern web technologies such as JavaScript and D3.js to support the creation of rich interactive HTML components. Developers can customize widgets by extending existing widget classes or leveraging JavaScript library features, enabling interactions such as clicking and dragging. HTML Widgets offer cross-platform compatibility, can be saved as self-contained HTML files for easy sharing, integrate with multiple popular visualization libraries, and can be used in various scenarios including R Markdown.</p><div><hr></div><h1><strong>R Markdown and HTML Widgets</strong></h1><h2><strong>1. HTML Widgets</strong></h2><p>JavaScript (JS) is a high-level, interpreted programming language originally used to implement dynamic interactive effects on web pages, such as form validation, animations, and asynchronous data loading. It is one of the core technologies of web development, forming the foundation of front-end development together with HTML and CSS. JavaScript is cross-platform and runs in various browsers without additional plugins. With the emergence of Node.js, JavaScript can also be used for server-side programming. In addition, JS is widely used in mobile applications, desktop software, game development, and artificial intelligence.</p><p>JavaScript adopts a prototype-based object-oriented programming model and supports event-driven and asynchronous programming (such as Promise and async/await). Its powerful ecosystem (e.g., React, Vue, Angular) makes it one of the most popular languages in modern web development.</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch3-subsec8integrating-javascript">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.3-Subsec.7：From Knit to Integrated Multi-Document Workflows]]></title><description><![CDATA[Customizable Rendering, Parameterized Reporting, and Modular Analysis Pipelines Using knitr and rmarkdown]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch3-subsec7from-knit-to-integrated</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch3-subsec7from-knit-to-integrated</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Sun, 08 Feb 2026 13:39:54 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!HiYv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HiYv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HiYv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!HiYv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!HiYv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!HiYv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HiYv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png" width="1456" height="812" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:812,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1412762,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/187286002?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HiYv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!HiYv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!HiYv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!HiYv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F24f16aeb-f1b5-46bc-96d5-a6c5759c125c_1858x1036.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In data analysis, scientific reporting, and technical documentation, <strong>R Markdown</strong> has become a powerful tool. It not only helps users create well-formatted documents, but also integrates data analysis, visualizations, and even interactive content. This article starts from the <strong>&#8220;Knit&#8221;</strong> function in R Markdown and explores how to generate customized reports using R Markdown.</p><div><hr></div><h2><strong>I. The &#8220;Knit&#8221; Button: The Core Hub of Visual Document Generation</strong></h2>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch3-subsec7from-knit-to-integrated">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.3-Subsec.6：Mastering the Integration of Code, Plots, and Mathematical Formulas in R Markdown]]></title><description><![CDATA[A Comprehensive Guide to Creating Professional, Reproducible, and Visually Appealing Reports with R]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch3-subsec6mastering-the-integration</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch3-subsec6mastering-the-integration</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Sat, 07 Feb 2026 08:54:38 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!R62r!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!R62r!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!R62r!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!R62r!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!R62r!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!R62r!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!R62r!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png" width="1456" height="812" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:812,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1420362,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/187177276?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!R62r!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!R62r!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!R62r!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!R62r!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab34a183-576d-4510-bc26-a9c9e86b0bd5_1858x1036.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>R Markdown has become a powerful tool for many practitioners due to its robust document generation capabilities. It allows users to seamlessly integrate code, data visualization, and textual descriptions into a single document, greatly improving the efficiency and quality of report writing and data analysis presentation. This article will explore several key features of R Markdown, including the basic structure and parameter configuration of code chunks, flexible control over plot appearance, and insertion and display of mathematical formulas, aiming to help users better master R Markdown skills and create professional, visually appealing, and feature-rich documents.</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch3-subsec6mastering-the-integration">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.3-Subsec.5：Mastering Headings, Lists, Text Formatting, and Links in R Markdown]]></title><description><![CDATA[A Practical Guide to Structuring Clear, Professional, and Dynamic Documents with Essential Markdown Elements in R Markdown]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch3-subsec5mastering-headings</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch3-subsec5mastering-headings</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Sat, 07 Feb 2026 07:51:38 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!L4qU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!L4qU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!L4qU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!L4qU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!L4qU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!L4qU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!L4qU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png" width="1456" height="812" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e90880ba-569f-481f-a949-252114c19e55_1858x1036.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:812,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1401156,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/187176573?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!L4qU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!L4qU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!L4qU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!L4qU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe90880ba-569f-481f-a949-252114c19e55_1858x1036.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In data analysis, academic writing, and report preparation, a clear and well-structured document format is essential. <strong>R Markdown</strong> combines the powerful computational capabilities of the R language with the simplicity of the Markdown lightweight markup language, enabling users to easily create richly formatted dynamic documents.</p><p>In R Markdown, basic elements such as text formatting, headings, lists, and hyperlinks form the main body of a document. Mastering these fundamental formats helps you write clear and well-organized documents. This article provides a detailed introduction to the basic formatting features of R Markdown, including headings, lists, text styling, and hyperlinks, along with examples to help you write R Markdown documents more efficiently.</p><div><hr></div><h1><strong>I. Detailed Explanation of R Markdown Formatting Elements</strong></h1><p>In R Markdown, headings, lists, and other formatting elements help build hierarchical and structured documents. Understanding how to create different levels of headings and lists is the foundation of writing in R Markdown.</p><pre><code><code>---
title: "Detailed Explanation of R Markdown Formatting Elements"
output: html_document
---</code></code></pre><h2><strong>1. Heading System</strong></h2><h3><strong>Heading Levels and Syntax</strong></h3><p>In R Markdown, headings are created using the # symbol, supporting six levels:</p><pre><code><code># Level 1 Heading (Document Title)
## Level 2 Heading (Section Title)
### Level 3 Heading (Subsection)
#### Level 4 Heading
##### Level 5 Heading
###### Level 6 Heading (Smallest Level)</code></code></pre>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch3-subsec5mastering-headings">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.3-Subsec.4：Mastering R Markdown YAML]]></title><description><![CDATA[A Practical Guide to Configuring Document Metadata, Output Options, and Automated YAML Management for Reproducible Reporting in R]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch3-subsec4mastering-r-markdown</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch3-subsec4mastering-r-markdown</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Sat, 07 Feb 2026 07:37:57 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!MK1K!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!MK1K!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!MK1K!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!MK1K!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!MK1K!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!MK1K!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!MK1K!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png" width="1456" height="812" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:812,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1388925,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/187176204?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!MK1K!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!MK1K!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!MK1K!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!MK1K!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6fc6cc4d-bbe1-4326-b529-4292cb10038c_1858x1036.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>R Markdown is a powerful tool in the R language, widely used for dynamic reports, academic papers, blogs, and many other scenarios. One of its core features is the use of a YAML (YAML Ain&#8217;t Markup Language) block to manage document metadata. YAML makes the structure of R Markdown documents clearer and more concise, allowing users to easily configure the&#8230;</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch3-subsec4mastering-r-markdown">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.3-Subsec.3：R Markdown for Academic Writing]]></title><description><![CDATA[Creating Documents and Using Journal Templates with rticles]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch3-subsec3r-markdown-for-academic</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch3-subsec3r-markdown-for-academic</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Thu, 05 Feb 2026 10:41:12 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!wyrQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wyrQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wyrQ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!wyrQ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!wyrQ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!wyrQ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wyrQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png" width="1456" height="812" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:812,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1414588,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/186960916?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wyrQ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!wyrQ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!wyrQ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!wyrQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7e4efc5-4538-4fe7-af1e-61864cdfe846_1858x1036.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>R Markdown is a powerful tool that allows you to combine text, code, and output results into a single document, and generate documents in multiple formats such as HTML, PDF, and Word. It is not only suitable for writing reports and academic papers, but also supports the creation of dynamic documents and interactive content. By creating R Markdown files in RStudio, users can conveniently choose document formats and templates to meet different writing needs.</p><p>This article introduces how to create R Markdown files using RStudio, as well as how to leverage journal templates to simplify the writing process of scientific research documents.</p><div><hr></div><h2><strong>I. Creating R Markdown: Starting from the Interface</strong></h2><p>R Markdown is an extremely powerful document generation tool that helps users combine text, code, and output results within the same document. With it, you can create reports in various formats such as HTML, PDF, and Word, making it easy to present analysis results and code.</p><h3><strong>Open RStudio</strong></h3><p>First, make sure that you have installed RStudio and launched the program.</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch3-subsec3r-markdown-for-academic">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.3-Subsec.2：Dynamic Reporting with R Markdown & R Notebook]]></title><description><![CDATA[A Complete Guide to Creating, Analyzing, and Sharing Interactive Reports in R]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch3-subsec2dynamic-reporting</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch3-subsec2dynamic-reporting</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Wed, 04 Feb 2026 03:26:17 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!rY3I!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!rY3I!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rY3I!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!rY3I!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!rY3I!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!rY3I!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!rY3I!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png" width="1456" height="812" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:812,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1405445,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/186818775?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!rY3I!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!rY3I!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!rY3I!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!rY3I!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F114da470-7869-4bd5-aebb-7590d9258ea8_1858x1036.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>R Markdown is a widely used tool that helps data scientists, statisticians, and researchers create dynamic and interactive reports. It combines the powerful data processing and analysis capabilities of the R language with the concise and easy-to-use text formatting of Markdown, making it simpler and more efficient to produce professional and visually appealing reports.</p><p>At the same time, <strong>R Notebook</strong> is an interactive document format that integrates narrative text, data visualizations, and other multimedia components with code written in R. R Notebook enables users to create and share documents that include data analysis, visualizations, and explanations of source code.</p><div><hr></div><h2><strong>I. Understanding the Basic Syntax of R Markdown</strong></h2><h3><strong>1. Comparing Markdown and Word</strong></h3><p>Markdown is a lightweight markup language created by <strong>John Gruber</strong> in 2004. Its original goal was to allow plain text to be easily enriched with formatting while maintaining readability. Today, Markdown has become one of the most popular markup languages in the world and is widely used in technical documentation, blog posts, notes, e-books, emails, and many other fields.</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch3-subsec2dynamic-reporting">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.3-Subsec.1：Notebooks and Markdown ]]></title><description><![CDATA[A Practical Guide to Combining Code, Analysis, and Reports in R]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch3-subsec1notebooks-and-markdown</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch3-subsec1notebooks-and-markdown</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Wed, 21 Jan 2026 10:57:51 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!oMAL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!oMAL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!oMAL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!oMAL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!oMAL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!oMAL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!oMAL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png" width="1456" height="812" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:812,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1413642,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185285579?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!oMAL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png 424w, https://substackcdn.com/image/fetch/$s_!oMAL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png 848w, https://substackcdn.com/image/fetch/$s_!oMAL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png 1272w, https://substackcdn.com/image/fetch/$s_!oMAL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22132dbd-6f79-40e8-8634-d7422ceeb1a2_1858x1036.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>When it comes to data analysis, academic research, or writing technical reports, one big challenge is figuring out how to efficiently combine code, analysis results, and written explanations. Traditionally, data analysis involves using multiple tools separately&#8212;like handling data in R, then writing reports in Word or LaTeX. But this approach can easily lead to inconsistencies between code and documentation and makes reproducing results harder.</p><p>To improve readability and reproducibility, tools like Notebooks, R Notebooks, Markdown, and R Markdown have become key parts of the data science workflow. This article will introduce these tools one by one and discuss how they can be applied in data analysis and report writing.</p><div><hr></div><h2><strong>1. Getting to Know Notebooks</strong></h2><p>In data science, statistics, and machine learning, analysts often need to write code to process data while also writing reports to explain their analysis and results. In a traditional workflow, code and reports are usually separate:</p><ul><li><p><strong>Code files</strong> (e.g., .R, .py) run the analysis.</p></li><li><p><strong>Document files</strong> (e.g., .docx, .pdf) hold the written report.</p></li></ul>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch3-subsec1notebooks-and-markdown">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.10：Quick Start with Web Scraping in R]]></title><description><![CDATA[Learn How to Grab, Clean, and Store Web Data the Easy Way]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec10quick-start-with</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec10quick-start-with</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Wed, 21 Jan 2026 10:43:19 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!XPM1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!XPM1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!XPM1!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png 424w, https://substackcdn.com/image/fetch/$s_!XPM1!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png 848w, https://substackcdn.com/image/fetch/$s_!XPM1!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png 1272w, https://substackcdn.com/image/fetch/$s_!XPM1!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!XPM1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png" width="1456" height="817" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e35630ce-d754-4b84-a030-062441e260d5_1822x1022.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:817,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1533873,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185284467?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!XPM1!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png 424w, https://substackcdn.com/image/fetch/$s_!XPM1!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png 848w, https://substackcdn.com/image/fetch/$s_!XPM1!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png 1272w, https://substackcdn.com/image/fetch/$s_!XPM1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe35630ce-d754-4b84-a030-062441e260d5_1822x1022.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In modern data analysis and web applications, <strong>web scraping</strong> has become an essential tool. With web scraping, you can automatically collect website content, making it easy to gather large amounts of data efficiently. In R, the <strong>rvest</strong> package provides powerful functions that help you collect, clean, and store data smoothly.</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec10quick-start-with">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.9：Running SQL in R]]></title><description><![CDATA[How to Use SQL Queries on R Data Frames to Boost Your Data Analysis Workflow]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec9running-sql-in-r</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec9running-sql-in-r</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Wed, 21 Jan 2026 10:38:39 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Spsi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Spsi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Spsi!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png 424w, https://substackcdn.com/image/fetch/$s_!Spsi!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png 848w, https://substackcdn.com/image/fetch/$s_!Spsi!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png 1272w, https://substackcdn.com/image/fetch/$s_!Spsi!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Spsi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png" width="1456" height="818" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:818,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1563747,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185283936?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Spsi!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png 424w, https://substackcdn.com/image/fetch/$s_!Spsi!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png 848w, https://substackcdn.com/image/fetch/$s_!Spsi!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png 1272w, https://substackcdn.com/image/fetch/$s_!Spsi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F632df17d-d907-4c8d-bbd4-28414ee054a6_1820x1022.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In medical statistics and clinical research, data handling and analysis often involve large tables and complex calculations. R is a go-to tool for statistical analysis, offering powerful ways to manipulate data. But for users familiar with SQL, R&#8217;s native data manipulation tools like <strong>dplyr</strong> or <strong>data.table</strong>&#8212;though powerful&#8212;can feel less intuitive than SQL&#8217;s straightforward syntax.</p><p>That&#8217;s where the <strong>sqldf</strong> package comes in. It lets you run SQL statements directly on R data frames, combining the strengths of R and SQL. In this article, we&#8217;ll dive into how <strong>sqldf</strong> works, the database backends it supports, and its applications in medical statistics.</p><div><hr></div><h2><strong>1. R and SQL Databases</strong></h2><h3><strong>1.1 Understanding SQL Databases</strong></h3><p><strong>SQL (Structured Query Language)</strong> is a domain-specific language designed for managing relational databases. It&#8217;s excellent for handling structured data&#8212;data organized into tables with relationships&#8212;and provides robust data management features.</p><p>SQL dates back to the early 1970s. IBM researchers <strong>Donald D. Chamberlin</strong> and <strong>Raymond F. Boyce</strong> were inspired by <strong>Edgar F. Codd&#8217;s relational model</strong> and started developing SQL at IBM&#8217;s San Jose research lab. Originally, it was called <strong>SEQUEL (Structured English Query Language)</strong>, created to work with IBM&#8217;s System R prototype relational database. Due to a trademark issue, it was renamed <strong>SQL</strong>, short for Structured Query Language.</p><p><strong>Key milestones in SQL history:</strong></p><ul><li><p><strong>Mid-1970s:</strong> IBM successfully tested SQL on System R, proving its practicality.</p></li><li><p><strong>1979:</strong> IBM released its first commercial SQL products, including System/38, SQL/DS, and IBM Db2.</p></li><li><p><strong>June 1979:</strong> Oracle (originally Relational Software, Inc.) launched the first commercial SQL implementation, Oracle V2, running on VAX computers&#8212;marking SQL&#8217;s commercial debut.</p></li><li><p><strong>1986:</strong> SQL became an ANSI standard in the U.S.</p></li><li><p><strong>1987:</strong> ISO adopted SQL as an international standard.</p></li><li><p><strong>Subsequent versions:</strong> The SQL standard has evolved over time, with major updates in 1989, 1992, 1999, 2003, 2006, 2011, 2016, and 2023, gradually adding more features and database capabilities.</p></li></ul><p>Today, SQL is a standard <strong>declarative language</strong> (4GL), covering:</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec9running-sql-in-r">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.8：Mastering Data Files in R: Excel, SPSS, SAS, Stata & Minitab]]></title><description><![CDATA[A Practical Guide to Reading, Writing, and Handling Different Data Formats Easily]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec8mastering-data-files-984</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec8mastering-data-files-984</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Wed, 21 Jan 2026 10:30:06 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!krLf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!krLf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!krLf!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png 424w, https://substackcdn.com/image/fetch/$s_!krLf!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png 848w, https://substackcdn.com/image/fetch/$s_!krLf!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png 1272w, https://substackcdn.com/image/fetch/$s_!krLf!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!krLf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png" width="1456" height="813" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e391d446-e102-4aca-8843-f18d35257c71_1824x1018.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:813,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1547361,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185283243?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!krLf!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png 424w, https://substackcdn.com/image/fetch/$s_!krLf!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png 848w, https://substackcdn.com/image/fetch/$s_!krLf!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png 1272w, https://substackcdn.com/image/fetch/$s_!krLf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe391d446-e102-4aca-8843-f18d35257c71_1824x1018.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>R is a powerful open-source programming language and software environment, widely used in data science. In practice, data comes from many sources and is often generated by software like Excel, SPSS, SAS, Stata, and Minitab. Knowing how to read and write these file types in R is an essential skill for data analysts and statisticians. Not only does it mak&#8230;</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec8mastering-data-files-984">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.7：Mastering Data File Handling in R: RDS, RData, CSV & TXT]]></title><description><![CDATA[A Practical, Hands-On Guide to Reading and Writing Common Data Formats in R]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec7mastering-data-file</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec7mastering-data-file</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Wed, 21 Jan 2026 10:21:04 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!mHzy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mHzy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mHzy!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png 424w, https://substackcdn.com/image/fetch/$s_!mHzy!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png 848w, https://substackcdn.com/image/fetch/$s_!mHzy!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png 1272w, https://substackcdn.com/image/fetch/$s_!mHzy!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!mHzy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png" width="1456" height="817" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:817,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1536121,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185282827?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!mHzy!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png 424w, https://substackcdn.com/image/fetch/$s_!mHzy!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png 848w, https://substackcdn.com/image/fetch/$s_!mHzy!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png 1272w, https://substackcdn.com/image/fetch/$s_!mHzy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff733d484-eb2d-4f26-831a-42c9962a740d_1822x1022.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In the world of data science and statistics, reading and writing data is a fundamental task. R provides multiple ways to handle different types of data files. In this guide, we&#8217;ll go through how to read and write four common file formats in R: <strong>.RDS, .RData, .CSV, and .TXT</strong>. These formats are widely used for data analysis, storage, and sharing, so knowing how to handle them is essential for any data scientist.</p><div><hr></div><h2><strong>1. RDS and RData Files</strong></h2><p>When working in R, saving and loading data is a core part of analysis. R has two native file formats for storing data: <strong>RDS</strong> and <strong>RData</strong>. Both are very useful within R because they store data efficiently while keeping the structure and attributes intact. If you only use R and don&#8217;t need to move your data to other platforms, these formats are the go-to choice.</p><p><strong>RDS format</strong> stores a single R object&#8212;like a data frame, list, or model. Since it&#8217;s stored in binary, the files are usually small, and reading them preserves the object&#8217;s structure and attributes.</p><p>A cool feature of RDS is that you can assign a <strong>new name to the object when reading it back</strong>, which makes handling multiple versions of data or models in the same session much easier. RDS files might be slightly slower to save or read than some alternatives, but their efficient storage and flexibility make them very popular.</p><p>Here&#8217;s a quick comparison of XLS (Excel), CSV, RDS, and RData formats:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Hsdg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Hsdg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png 424w, https://substackcdn.com/image/fetch/$s_!Hsdg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png 848w, https://substackcdn.com/image/fetch/$s_!Hsdg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png 1272w, https://substackcdn.com/image/fetch/$s_!Hsdg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Hsdg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png" width="1456" height="249" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:249,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:85553,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185282827?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Hsdg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png 424w, https://substackcdn.com/image/fetch/$s_!Hsdg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png 848w, https://substackcdn.com/image/fetch/$s_!Hsdg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png 1272w, https://substackcdn.com/image/fetch/$s_!Hsdg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89f6250c-ede8-4f5a-a880-2b14aa589ad9_2488x426.png 1456w" sizes="100vw"></picture><div></div></div></a></figure></div>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec7mastering-data-file">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.6：Working with Datasets in R]]></title><description><![CDATA[A Practical Guide to Reading, Exploring, and Copy-Pasting Data Efficiently in RStudio]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec6working-with-datasets</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec6working-with-datasets</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Mon, 19 Jan 2026 09:16:47 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!M6Cd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!M6Cd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!M6Cd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png 424w, https://substackcdn.com/image/fetch/$s_!M6Cd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png 848w, https://substackcdn.com/image/fetch/$s_!M6Cd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png 1272w, https://substackcdn.com/image/fetch/$s_!M6Cd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!M6Cd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png" width="1456" height="814" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:814,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2287025,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185043661?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!M6Cd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png 424w, https://substackcdn.com/image/fetch/$s_!M6Cd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png 848w, https://substackcdn.com/image/fetch/$s_!M6Cd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png 1272w, https://substackcdn.com/image/fetch/$s_!M6Cd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2d10df2-a5f8-4107-9335-452b05908d7e_2324x1300.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>R comes with <strong>a large number of built-in datasets</strong>. These datasets are not only great practice material for beginners, but also super handy for researchers and data analysts when testing ideas, validating models, or doing quick demos. In this article, we&#8217;ll walk through <strong>how to read, inspect, and use datasets in R</strong>, step by step &#8212; nice and easy.</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec6working-with-datasets">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.5：Mastering R Package Management]]></title><description><![CDATA[From Fuzzy Installation to Auto Updates &#8212; Plus Working Directory & Workspace Setup]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec5mastering-r-package</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec5mastering-r-package</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Mon, 19 Jan 2026 09:00:53 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!mYch!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mYch!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mYch!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png 424w, https://substackcdn.com/image/fetch/$s_!mYch!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png 848w, https://substackcdn.com/image/fetch/$s_!mYch!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png 1272w, https://substackcdn.com/image/fetch/$s_!mYch!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!mYch!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png" width="1456" height="815" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:815,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2292491,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185042835?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!mYch!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png 424w, https://substackcdn.com/image/fetch/$s_!mYch!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png 848w, https://substackcdn.com/image/fetch/$s_!mYch!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png 1272w, https://substackcdn.com/image/fetch/$s_!mYch!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e65f7b6-ce63-445d-9dfa-4b2fa9ca1e30_2318x1298.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This article helps you <strong>effectively manage your R development environment</strong>. It covers:</p><ul><li><p>How to install and update R packages</p></li><li><p>How to set and manage the working directory and workspace</p></li><li><p>How to check your current R version</p></li><li><p>How to automatically update installed packages</p></li></ul><p>The goal is simple: <strong>keep your R environment clean, up-to-date, stable, and efficient</strong>, so your data analysis workflow doesn&#8217;t randomly blow up mid-project.</p><div><hr></div><h2><strong>I. R Packages</strong></h2><p>R packages are <strong>structured collections</strong> of R functions, datasets, and sometimes pre-compiled code.</p><p>When you install R, it already comes with a set of <strong>base packages</strong>, which provide commonly used default functions and datasets.</p><p>On top of that, you can install <strong>additional packages</strong> whenever you need extra functionality.</p><p>&#9888;&#65039; Important: <strong>after installing a package, you still need to load it into memory</strong> before you can actually use it.</p><div><hr></div><h4><strong>CRAN: Where R Packages Live</strong></h4><p>R packages are officially hosted on <strong>CRAN (Comprehensive R Archive Network)</strong>, which is basically R&#8217;s home base:</p><blockquote><p>https://cran.r-project.org</p></blockquote><p>The following page lists <strong>all available packages on CRAN, sorted by date.</strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!aTVR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!aTVR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png 424w, https://substackcdn.com/image/fetch/$s_!aTVR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png 848w, https://substackcdn.com/image/fetch/$s_!aTVR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png 1272w, https://substackcdn.com/image/fetch/$s_!aTVR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!aTVR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png" width="1456" height="407" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2009292c-e964-4758-9094-621d3432906f_4104x1146.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:407,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:541672,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185042835?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!aTVR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png 424w, https://substackcdn.com/image/fetch/$s_!aTVR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png 848w, https://substackcdn.com/image/fetch/$s_!aTVR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png 1272w, https://substackcdn.com/image/fetch/$s_!aTVR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2009292c-e964-4758-9094-621d3432906f_4104x1146.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>As of now, there are <strong>20,000+ R packages</strong> available (yeah, it&#8217;s wild):</p><blockquote><p>https://cran.r-project.org/web/packages/available_packages_by_date.html</p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!sHEn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!sHEn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png 424w, https://substackcdn.com/image/fetch/$s_!sHEn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png 848w, https://substackcdn.com/image/fetch/$s_!sHEn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png 1272w, https://substackcdn.com/image/fetch/$s_!sHEn!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!sHEn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png" width="1456" height="635" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:635,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:667104,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185042835?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!sHEn!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png 424w, https://substackcdn.com/image/fetch/$s_!sHEn!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png 848w, https://substackcdn.com/image/fetch/$s_!sHEn!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png 1272w, https://substackcdn.com/image/fetch/$s_!sHEn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F42ac72f8-4055-4c08-b6e5-39fb843a459e_4102x1788.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Another useful page:</p><blockquote><p>https://cran.rstudio.com/web/views/</p></blockquote>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec5mastering-r-package">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.4：Managing R Projects in RStudio and Visualizing Data with ggplot2 & gganimate]]></title><description><![CDATA[A hands-on guide to project management, static plots, and animated data storytelling in R]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec4managing-r-projects</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec4managing-r-projects</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Mon, 19 Jan 2026 08:46:21 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!L87Q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!L87Q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!L87Q!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png 424w, https://substackcdn.com/image/fetch/$s_!L87Q!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png 848w, https://substackcdn.com/image/fetch/$s_!L87Q!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png 1272w, https://substackcdn.com/image/fetch/$s_!L87Q!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!L87Q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png" width="1456" height="816" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:816,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2309371,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185041699?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!L87Q!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png 424w, https://substackcdn.com/image/fetch/$s_!L87Q!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png 848w, https://substackcdn.com/image/fetch/$s_!L87Q!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png 1272w, https://substackcdn.com/image/fetch/$s_!L87Q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05729dc7-beef-44a2-acee-47f217f6928e_2326x1304.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>RStudio is a powerful Integrated Development Environment (IDE) for R. It&#8217;s not just a place to write and run R code &#8212; it also comes with built-in <strong>project management features</strong>. These features help you organize code, data, scripts, figures, and other resources in a clean, modular, and maintainable way.</p><div><hr></div><h2><strong>1. Managing Projects with RStudio</strong></h2><p>RStudio is one of the most popular IDEs among data scientists, statisticians, and analysts &#8212; mainly because it&#8217;s both powerful and easy to use. Beyond coding and execution, RStudio provides solid <strong>project management tools</strong> that make data analysis workflows much more organized.</p><p>In this section, we&#8217;ll walk through:</p><ul><li><p>Creating and structuring RStudio projects</p></li><li><p>File organization</p></li><li><p>Version control</p></li><li><p>Collaboration</p></li><li><p>Automated workflows</p></li></ul><div><hr></div><h3><strong>1. Creating an RStudio Project</strong></h3><p>An RStudio Project is essentially a workspace that keeps all your files and settings together. Each project has its own:</p><ul><li><p>Working directory</p></li><li><p>Files</p></li><li><p>Environment settings</p></li></ul><p>Think of it as a self-contained sandbox for your analysis.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!GvqD!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!GvqD!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png 424w, https://substackcdn.com/image/fetch/$s_!GvqD!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png 848w, https://substackcdn.com/image/fetch/$s_!GvqD!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png 1272w, https://substackcdn.com/image/fetch/$s_!GvqD!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!GvqD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png" width="1456" height="949" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:949,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:354645,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/185041699?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!GvqD!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png 424w, https://substackcdn.com/image/fetch/$s_!GvqD!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png 848w, https://substackcdn.com/image/fetch/$s_!GvqD!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png 1272w, https://substackcdn.com/image/fetch/$s_!GvqD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F417c6174-9c11-446e-8caa-7726418b50a5_2004x1306.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec4managing-r-projects">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.3：Working Smarter with RStudio: Practical Tips for Customizing Your Environment]]></title><description><![CDATA[Themes, Fonts, Layouts, and Workflow Tweaks to Boost Productivity in R]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec3working-smarter-with</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec3working-smarter-with</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Sat, 17 Jan 2026 05:31:23 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!wKn9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wKn9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wKn9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png 424w, https://substackcdn.com/image/fetch/$s_!wKn9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png 848w, https://substackcdn.com/image/fetch/$s_!wKn9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png 1272w, https://substackcdn.com/image/fetch/$s_!wKn9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wKn9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png" width="1456" height="817" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0548279c-6532-4773-a13b-d802e154e980_2246x1260.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:817,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1936588,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/184841512?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wKn9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png 424w, https://substackcdn.com/image/fetch/$s_!wKn9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png 848w, https://substackcdn.com/image/fetch/$s_!wKn9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png 1272w, https://substackcdn.com/image/fetch/$s_!wKn9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0548279c-6532-4773-a13b-d802e154e980_2246x1260.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>RStudio is an integrated development environment (IDE) that includes a console, a syntax-highlighting editor, and the ability to run code directly. It also comes with a bunch of powerful tools for plotting, viewing history, debugging, and managing your workspace. In this article, we&#8217;ll walk through how to <strong>customize your RStudio environment</strong> to seriously level up your coding experience and overall efficiency. We&#8217;ll start with themes and appearance, then move on to fonts, layout customization, code auto-completion, keyboard shortcuts, and code folding. Finally, we&#8217;ll look at how to use <strong>R code to set global options</strong>, so your workflow feels smooth, clean, and honestly&#8230; kinda satisfying. </p><div><hr></div><h2><strong>I. Customizing the RStudio Environment</strong></h2><h3><strong>1. Themes and Appearance</strong></h3><p>RStudio provides a wide range of themes and appearance settings. You can pick whatever fits your personal taste and working environment best.</p><p>These settings aren&#8217;t just about looking cool&#8212;they can <strong>reduce eye strain</strong> and <strong>boost productivity</strong>, which is pretty important if you&#8217;re staring at code all day.</p><div><hr></div><h4><strong>Changing the Theme</strong></h4><p>RStudio comes with many built-in themes, including both light and dark options.</p><p>Here&#8217;s how to switch themes:</p><ol><li><p>Open RStudio</p></li><li><p>Go to <strong>Tools &#8594; Global Options</strong></p></li><li><p>Select <strong>Appearance</strong></p></li><li><p>Choose a theme from the <strong>Editor theme</strong> dropdown</p></li></ol><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!eEs1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!eEs1!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png 424w, https://substackcdn.com/image/fetch/$s_!eEs1!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png 848w, https://substackcdn.com/image/fetch/$s_!eEs1!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png 1272w, https://substackcdn.com/image/fetch/$s_!eEs1!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!eEs1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png" width="1244" height="1358" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1358,&quot;width&quot;:1244,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:271178,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/184841512?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!eEs1!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png 424w, https://substackcdn.com/image/fetch/$s_!eEs1!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png 848w, https://substackcdn.com/image/fetch/$s_!eEs1!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png 1272w, https://substackcdn.com/image/fetch/$s_!eEs1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32b8995e-fec1-4981-bf3d-4060c133a95b_1244x1358.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h4><strong>(1) Built-in Editor Themes Overview</strong></h4><ul><li><p><strong>Textmate</strong></p><p>The default RStudio theme, with a light background.</p></li><li><p><strong>Solarized Light / Solarized Dark</strong></p><p>A classic light/dark pair, well-known for readability and reduced eye fatigue.</p></li><li><p><strong>Tomorrow Series</strong></p><p>Includes <em>Tomorrow</em>, <em>Tomorrow Night</em>, <em>Tomorrow Night Blue</em>, <em>Tomorrow Night Bright</em>, and <em>Tomorrow Night 80s</em>. Lots of choices in tone and contrast.</p></li></ul>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec3working-smarter-with">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.2：A Practical Guide to the RStudio Interface]]></title><description><![CDATA[How to Use RStudio Efficiently, with R Coding Style Tips and File Organization Best Practices]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec2a-practical-guide</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec2a-practical-guide</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Sat, 17 Jan 2026 05:00:18 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!RwfJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!RwfJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!RwfJ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png 424w, https://substackcdn.com/image/fetch/$s_!RwfJ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png 848w, https://substackcdn.com/image/fetch/$s_!RwfJ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png 1272w, https://substackcdn.com/image/fetch/$s_!RwfJ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!RwfJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png" width="1456" height="820" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:820,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1943949,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/184839926?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!RwfJ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png 424w, https://substackcdn.com/image/fetch/$s_!RwfJ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png 848w, https://substackcdn.com/image/fetch/$s_!RwfJ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png 1272w, https://substackcdn.com/image/fetch/$s_!RwfJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d188f7-34e8-46dc-bb6f-59eaa55d426f_2242x1262.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>RStudio is a powerful and widely used <strong>Integrated Development Environment (IDE)</strong> built specifically for the R programming language. It offers a clean and intuitive interface that helps data scientists, statisticians, and analysts work more efficiently&#8212;whether they&#8217;re doing data analysis, visualization, or writing reports.This article focuses on a <strong>detailed&#8230;</strong></p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec2a-practical-guide">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.2-Subsec.1：Downloading and Installing R and RStudio (Windows & Mac)]]></title><description><![CDATA[From Download to First Plot: Setting Up R and RStudio Made Easy]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch2-subsec1downloading-and-installing</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch2-subsec1downloading-and-installing</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Tue, 13 Jan 2026 03:26:26 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!wHn6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="pullquote"><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wHn6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wHn6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png 424w, https://substackcdn.com/image/fetch/$s_!wHn6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png 848w, https://substackcdn.com/image/fetch/$s_!wHn6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png 1272w, https://substackcdn.com/image/fetch/$s_!wHn6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wHn6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png" width="1456" height="820" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/13912069-0241-4554-896e-af05ce585067_2060x1160.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:820,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1864667,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/184396997?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wHn6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png 424w, https://substackcdn.com/image/fetch/$s_!wHn6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png 848w, https://substackcdn.com/image/fetch/$s_!wHn6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png 1272w, https://substackcdn.com/image/fetch/$s_!wHn6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13912069-0241-4554-896e-af05ce585067_2060x1160.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>R is a programming language and environment designed specifically for statistical computing and graphics. It&#8217;s an implementation of the S language originally developed at Bell Labs by Rick Becker, John Chambers, and Allan Wilks. R comes with a rich set of tools for statistics and visualization and has become a core tool for data analysis and research. As an object-oriented programming language, R is open-source and maintained by a large, active, global community of researchers. In this article, we&#8217;ll explore the benefits and applications of R in medical data analysis and walk you through downloading and installing both R and RStudio.</p></div><h2><strong>Free and Open-Source R</strong></h2><p></p><p>One of the biggest perks of R is that it&#8217;s open-source. That means anyone can download, use, and even modify it for free. This openness not only lowers costs but also encourages collaboration and innovation worldwide. A huge number of researchers and developers have contributed high-quality packages, so R can handle all sorts of complex data analysis tasks.</p><p>R&#8217;s syntax is simple and intuitive. You mainly need to understand how functions work, without worrying about underlying implementation details. It also supports conditionals, loops, user-defined recursive functions, and input/output interfaces, making it flexible and practical. Even for researchers with no programming background, R is relatively easy to pick up.</p><p>R is lightweight and easy to install. Most of its functionality comes from packages that cover cutting-edge data analysis methods across industries. You can install and use only the packages you need, making R a modular, flexible, and highly extensible tool.</p><p>It works across multiple platforms, including Windows, macOS, Linux, and UNIX. Some users even run R in browsers or mobile systems. This cross-platform support ensures you can use R in virtually any computing environment.</p><div><hr></div><h2><strong>Step 1: Download R from the Official Site</strong></h2><p>Open your browser and go to the official R project website: </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CEM4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CEM4!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png 424w, https://substackcdn.com/image/fetch/$s_!CEM4!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png 848w, https://substackcdn.com/image/fetch/$s_!CEM4!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png 1272w, https://substackcdn.com/image/fetch/$s_!CEM4!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CEM4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png" width="1456" height="1038" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1038,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:483136,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/184396997?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CEM4!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png 424w, https://substackcdn.com/image/fetch/$s_!CEM4!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png 848w, https://substackcdn.com/image/fetch/$s_!CEM4!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png 1272w, https://substackcdn.com/image/fetch/$s_!CEM4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f2226da-4f31-4a28-8469-03ecc8752370_2020x1440.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>https://www.r-project.org/</p><p>This site is the official hub for R, providing software, documentation, packages, and community resources. On the homepage, click the <strong>&#8220;CRAN&#8221;</strong> link to access the CRAN (Comprehensive R Archive Network), which is the official network for distributing R.</p><h2><strong>Step 2: Choose a Mirror Site (China mirrors are faster for local users)</strong></h2><p></p><p>CRAN has multiple mirror sites worldwide to spread out the load and speed up downloads. Choosing a mirror near your location usually gives faster download speeds.</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch2-subsec1downloading-and-installing">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Sec.1-Ch.1-Subsec.5：Learning the Basics and Workflow of Data Analysis]]></title><description><![CDATA[The Fundamentals, Workflow, and Your First Steps Toward Becoming an AI Data Analyst]]></description><link>https://medicaldatascience.substack.com/p/sec1-ch1-subsec5learning-the-basics</link><guid isPermaLink="false">https://medicaldatascience.substack.com/p/sec1-ch1-subsec5learning-the-basics</guid><dc:creator><![CDATA[Dr. Xie YJ]]></dc:creator><pubDate>Mon, 12 Jan 2026 08:04:02 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Cwy6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="pullquote"><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Cwy6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Cwy6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png 424w, https://substackcdn.com/image/fetch/$s_!Cwy6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png 848w, https://substackcdn.com/image/fetch/$s_!Cwy6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png 1272w, https://substackcdn.com/image/fetch/$s_!Cwy6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Cwy6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png" width="1456" height="809" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:809,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1038949,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://medicaldatascience.substack.com/i/184290651?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!Cwy6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png 424w, https://substackcdn.com/image/fetch/$s_!Cwy6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png 848w, https://substackcdn.com/image/fetch/$s_!Cwy6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png 1272w, https://substackcdn.com/image/fetch/$s_!Cwy6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f1f4a98-e2e0-4906-bf92-faa5a4936959_1882x1046.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In today&#8217;s digital era, data analysts have become indispensable across almost every industry. As professionals who use advanced tools and analytical methods to collect, process, and interpret data, their value continues to rise rapidly. Reports suggest that employment in data-related roles is expected to grow by <strong>up to 36%</strong>, far exceeding the average growth rate of most other professions. This clearly highlights the strong long-term prospects of this career path.</p></div><p>With the rapid development of artificial intelligence, AI tools such as <strong>ChatGPT</strong> and <strong>DeepSeek</strong> are increasingly becoming part of a data analyst&#8217;s daily workflow. ChatGPT, with its powerful natural language processing capabilities, can help analysts interpret data, organize ideas, and draft analysis reports more efficiently. It&#8217;s especially useful for structuring initial insights and building report outlines.</p><p>DeepSeek, on the other hand, shows strong advantages in large-scale data analysis and model training. It can process massive datasets quickly and uncover hidden relationships within the data, offering analysts faster and more advanced analytical capabilities.</p><div><hr></div><h2><strong>I. Becoming a Qualified Data Analyst</strong></h2><p></p><p>To become a competent data analyst, you need to master a core set of skills.</p><p>First of all, <strong>programming skills</strong> are the key that opens the door to data processing and analysis. Proficiency in languages such as <strong>R</strong> and <strong>Python</strong> allows analysts to work through massive datasets, perform complex data manipulations, and implement analytical algorithms.</p><p>A solid foundation in <strong>statistics and mathematics</strong> provides the theoretical backbone for data modeling and analysis. Understanding concepts such as probability distributions and regression analysis helps reveal the patterns and trends hidden beneath the data.</p><p><strong>Data visualization</strong> is equally essential. Tools like <strong>ggplot2</strong>, <strong>Tableau</strong>, and <strong>Power BI</strong> transform raw data into intuitive charts and dashboards, making results easy to understand for different audiences.</p><p>Finally, <strong>business insight</strong> sets great analysts apart. This means going beyond technical skills, deeply understanding industry trends and business needs, and translating data insights into practical, actionable recommendations.</p><p>Data analysis is a systematic, end-to-end process, where every step contributes to final value creation. It starts with <strong>problem definition and goal setting</strong>. Analysts need to work closely with business teams to clarify real needs&#8212;such as forecasting market trends or identifying target customer segments&#8212;so the analysis stays on the right track.</p><p>Next comes <strong>data collection and preparation</strong>, which is critical. Data may come from databases, web scraping, or external APIs. After collection, analysts must clean the data by removing duplicates, handling missing or abnormal values, and converting formats and data types to ensure high-quality input.</p><p>The <strong>analysis and modeling phase</strong> is the core. Exploratory data analysis uses visualization and statistics to understand data characteristics, followed by choosing appropriate statistical or machine learning models such as regression or clustering. Models are then evaluated using metrics like accuracy and recall to ensure reliability.</p><p>Finally, <strong>data visualization and reporting</strong> serve as the bridge to decision-makers. Clear charts and well-structured reports summarize key findings and support informed decision-making.</p><p>For beginners entering the field, structured learning and hands-on practice are essential. Start by building strong foundations in data science and statistics to understand core concepts. Then focus on mastering <strong>R or Python</strong>, which are critical for real-world analysis. Participate in data competitions or internships to gain practical experience. As your skills mature, you can expand into advanced areas such as machine learning, big data analytics, and artificial intelligence. Continuous learning is crucial in a fast-evolving field.</p><p>From a career perspective, data analysts have diverse paths. You can move toward <strong>data science</strong>, working with advanced machine learning and big data technologies; transition into <strong>data engineering</strong>, focusing on data infrastructure and pipelines; or become a <strong>business analyst or product manager</strong>, applying data insights directly to strategy and product development.</p><div><hr></div><h3><strong>Pharmaceutical Data Analyst</strong></h3><p>For professionals with a <strong>clinical medicine background</strong>, transitioning into pharmaceutical data analysis offers a unique advantage. Their medical expertise forms a strong foundation. Familiarity with human physiology, pathology, and disease treatment allows them to quickly grasp the medical meaning behind data.</p><p>For example, when analyzing clinical trial data, clinicians can accurately interpret relationships between drug efficacy, adverse effects, and physiological responses, uncovering deeper insights that support drug development and optimization.</p><p>Clinical thinking also plays a critical role. Doctors are trained to evaluate complex cases by integrating multiple sources of information. This mindset translates well into data analysis, enabling them to approach large medical datasets holistically, identify key variables, detect anomalies, and assess data validity using medical knowledge. This leads to more accurate and reliable analyses.</p>
      <p>
          <a href="https://medicaldatascience.substack.com/p/sec1-ch1-subsec5learning-the-basics">
              Read more
          </a>
      </p>
   ]]></content:encoded></item></channel></rss>