下载离线手册
使用链接下载
下载链接为:(网络不好容易下载失败)https://github.com/appliedepi/epirhandbook_eng/raw/master/offline_long/Epi_R_Handbook_offline.html
使用R包下载
该书提供了一个R包:epirhandbook,可以使用download_book()进行下载
R包安装及下载
# install the latest version of the Epi R Handbook package
pacman::p_install_gh("appliedepi/epirhandbook")
# load the package for use
pacman::p_load(epirhandbook)
下载数据
使用R包下载
epirhandbook软件包还包含一个get_data()
将所有示例数据下载到您的计算机的功能,可以对所有相关数据进行下载
# download all the example data into a folder on your computer
get_data("all")
# download only the linelist example data into a folder on your computer
get_data(file = "linelist_cleaned.rds")
通过github下载
github数据地址:https://github.com/appliedepi/epirhandbook_eng/tree/master/data
直接加载数据
可以指定数据直接加载
pacman::p_load(rio) # install/load the rio package
# import the file directly from Github
likert_data <- import("https://raw.githubusercontent.com/appliedepi/epirhandbook_eng/master/data/likert_data.csv")
另外原书页面保存了一些可以直接下载的数据,详见:2 Download handbook and data | The Epidemiologist R Handbook