江苏预防医学2024,Vol.35Issue(1) :60-64.DOI:10.13668/j.issn.1006-9070.2024.01.014

基于R语言的疫情分析报告模块化输出——以新冠疫情为例

Modular output of epidemics analysis reports based on R package:an example of COVID-19 epidemics

戴启刚 许可 黄昊頔 戴文军 陆步来 鲍倡俊
江苏预防医学2024,Vol.35Issue(1) :60-64.DOI:10.13668/j.issn.1006-9070.2024.01.014

基于R语言的疫情分析报告模块化输出——以新冠疫情为例

Modular output of epidemics analysis reports based on R package:an example of COVID-19 epidemics

戴启刚 1许可 1黄昊頔 1戴文军 2陆步来 3鲍倡俊1
扫码查看

作者信息

  • 1. 江苏省疾病预防控制中心,南京 210009
  • 2. 泰州市疾病预防控制中心
  • 3. 苏州市疾病预防控制中心
  • 折叠

摘要

目的 探讨疫情分析中,基于R软件的模块化输出方法.方法 以新冠疫情为例,基于可重复执行的R程序,利用officer软件包实现R程序和Office word的交互.结果 通过在预先设定好格式的模板文档中插入书签,用R语言模块化输出数字、文字、图表.基于Office Excel数据,在R程序中使用Officer软件包实现生成流行病学报告的疫情分析自动化和可视化输出.结论R语言简洁高效、便于维护,可显著提高疫情分析的时效性和准确性.

Abstract

Objective To explore the modular output method of epidemics analysis reports based on R package.Methods COVID-19 epidemic was selected as an example.Based on the repeatable R package,the Office software was employed to achieve the interaction between R package and Office Word software.Results The bookmark was inserted into the predesigned template file,and modular data,characters,tables and figures were output through the R package.Based on the Office Excel software,the epidemic analysis automation and visualization output of epidemiological reports were generated using the Officer function in the R package.Conclusions R package is simple,highly effective and convenient to maintain,which may remarkably improve the timeliness and ac-curacy of epidemic analyses.

关键词

疫情分析/新冠感染/R语言/自动输出

Key words

Epidemic analysis/SARS-CoV-2 infection/R package/Automatic output

引用本文复制引用

基金项目

江苏省卫生健康委科研项目(M2020026)

江苏省预防医学会项目(Y2018067)

江苏省卫生健康委重点科研项目(ZD2021037)

流行病学学重点学科建设项目(十四五)(ZDXK202250)

江苏省卫生健康委定向委托研究重点项目(2023)(DX202302)

出版年

2024
江苏预防医学
江苏省疾病预防控制中心 江苏省预防医学会

江苏预防医学

影响因子:1.319
ISSN:1006-9070
参考文献量11
段落导航相关论文